diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-06-24 21:45:37 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-07-16 13:25:14 +0000 |
commit | b31923c5e5b9013c690e88fbdfc67ea8fdabaa47 (patch) | |
tree | 269244a1e80acd3560a15b7ee8f13495ac114ba7 | |
parent | a3f780b4a1e80b706b5225edcc6ca6fb8938d065 (diff) |
QStyleSheetStyle: mark QRenderRule and ButtonInfo movable
Because they are.
Change-Id: Iab029e4b120f10efc99d62960b88fbba7603cc1b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
-rw-r--r-- | src/widgets/styles/qstylesheetstyle.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp index 34bc59c86f..bf06ebdc1c 100644 --- a/src/widgets/styles/qstylesheetstyle.cpp +++ b/src/widgets/styles/qstylesheetstyle.cpp @@ -586,6 +586,7 @@ public: int clipset; QPainterPath clipPath; }; +Q_DECLARE_TYPEINFO(QRenderRule, Q_MOVABLE_TYPE); /////////////////////////////////////////////////////////////////////////////////////////// static const char *const knownStyleHints[] = { @@ -730,6 +731,7 @@ namespace { int width; }; } +template <> class QTypeInfo<ButtonInfo> : public QTypeInfoMerger<ButtonInfo, QRenderRule, int> {}; QHash<QStyle::SubControl, QRect> QStyleSheetStyle::titleBarLayout(const QWidget *w, const QStyleOptionTitleBar *tb) const { |