diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-02-11 21:24:31 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@theqtcompany.com> | 2016-02-29 12:37:55 +0000 |
commit | 22b02df3b2b898630bc043fc8a18559e8e6c73ce (patch) | |
tree | 222f868112fe4b3301016331786de26d71f49dff /src/dialogs/Private | |
parent | ee8bfc3eaa49595bce559f89ea2cf33067a91475 (diff) | |
download | qtquickcontrols-22b02df3b2b898630bc043fc8a18559e8e6c73ce.tar.gz |
Port to new Q*DialogOptions API
Q*DialogOptions are no longer value types, but are
held only in QSharedPointers. Consequently, all
special member function have been hidden from clients
and create() and clone() methods have been added.
This change uses a macro defined by the QtBase change
to select the API variant.
This is needed for the QtBase change to integrate, and
needed for as long as the QtBase change hasn't been
integrated, yet.
A follow-up commit will remove the scaffolding again.
Change-Id: I20c1d75fcaa42323862599f2a35b815bc67b39dd
Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
Diffstat (limited to 'src/dialogs/Private')
-rw-r--r-- | src/dialogs/Private/qquickfontlistmodel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dialogs/Private/qquickfontlistmodel.cpp b/src/dialogs/Private/qquickfontlistmodel.cpp index af318f3b..530d0c2c 100644 --- a/src/dialogs/Private/qquickfontlistmodel.cpp +++ b/src/dialogs/Private/qquickfontlistmodel.cpp @@ -52,7 +52,11 @@ class QQuickFontListModelPrivate public: QQuickFontListModelPrivate(QQuickFontListModel *q) : q_ptr(q), ws(QFontDatabase::Any) +#ifdef QPLATFORMDIALOGHELPERS_HAS_CREATE + , options(QFontDialogOptions::create()) +#else , options(QSharedPointer<QFontDialogOptions>(new QFontDialogOptions())) +#endif {} QQuickFontListModel *q_ptr; |