summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-05-07 19:45:12 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-10 03:26:11 +0200
commit6f86fea820f7de17da9501ebb323398cd851fab3 (patch)
treee8673e0565ba7748a40a39254c3c5f0f3a8e370f /src/gui/kernel
parent340bd0d4292ef5d715065733017784e576f6e97b (diff)
QtGui: declare some classes as shared
Change-Id: I0ebb0ca8b8edcecc939021407d1755693f97e553 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qpalette.h2
-rw-r--r--src/gui/kernel/qplatformdialoghelper.h6
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/kernel/qpalette.h b/src/gui/kernel/qpalette.h
index 4b71af813b..91fa6faa5f 100644
--- a/src/gui/kernel/qpalette.h
+++ b/src/gui/kernel/qpalette.h
@@ -186,6 +186,8 @@ private:
friend Q_GUI_EXPORT QDataStream &operator<<(QDataStream &s, const QPalette &p);
};
+Q_DECLARE_SHARED(QPalette)
+
inline void QPalette::setColor(ColorGroup acg, ColorRole acr,
const QColor &acolor)
{ setBrush(acg, acr, QBrush(acolor)); }
diff --git a/src/gui/kernel/qplatformdialoghelper.h b/src/gui/kernel/qplatformdialoghelper.h
index a884d8b5de..58b4062fad 100644
--- a/src/gui/kernel/qplatformdialoghelper.h
+++ b/src/gui/kernel/qplatformdialoghelper.h
@@ -140,6 +140,8 @@ private:
QSharedDataPointer<QColorDialogOptionsPrivate> d;
};
+Q_DECLARE_SHARED(QColorDialogOptions)
+
class Q_GUI_EXPORT QPlatformColorDialogHelper : public QPlatformDialogHelper
{
Q_OBJECT
@@ -187,6 +189,8 @@ private:
QSharedDataPointer<QFontDialogOptionsPrivate> d;
};
+Q_DECLARE_SHARED(QFontDialogOptions)
+
class Q_GUI_EXPORT QPlatformFontDialogHelper : public QPlatformDialogHelper
{
Q_OBJECT
@@ -281,6 +285,8 @@ private:
QSharedDataPointer<QFileDialogOptionsPrivate> d;
};
+Q_DECLARE_SHARED(QFileDialogOptions)
+
class Q_GUI_EXPORT QPlatformFileDialogHelper : public QPlatformDialogHelper
{
Q_OBJECT