make gui compile with QT_NO_SHORTCUT
The metatype system expects operator<<(QDataStream &, QKeySequence &) even when shortcuts are disabled. This provides empty definitions for that case. Task-number: QTBUG-24816 Change-Id: Ie29fd01d38178bdc31cc51f1f08662b30edfc1e4 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
This commit is contained in:
parent
a620b77896
commit
d3ff621a57
@ -227,6 +227,11 @@ public:
|
||||
QKeySequence(int) {}
|
||||
};
|
||||
|
||||
#ifndef QT_NO_DATASTREAM
|
||||
Q_GUI_EXPORT QDataStream &operator<<(QDataStream &in, const QKeySequence &ks) {}
|
||||
Q_GUI_EXPORT QDataStream &operator>>(QDataStream &in, QKeySequence &ks) {}
|
||||
#endif /* #ifndef QT_NO_DATASTREAM */
|
||||
|
||||
#endif // QT_NO_SHORTCUT
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
Loading…
Reference in New Issue
Block a user