diff options
Diffstat (limited to 'src/declarative/util/qmlsystempalette.cpp')
-rw-r--r-- | src/declarative/util/qmlsystempalette.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/util/qmlsystempalette.cpp b/src/declarative/util/qmlsystempalette.cpp index d43a971..39d8f3e 100644 --- a/src/declarative/util/qmlsystempalette.cpp +++ b/src/declarative/util/qmlsystempalette.cpp @@ -80,7 +80,7 @@ QmlSystemPalette::QmlSystemPalette(QObject *parent) : QObject(*(new QmlSystemPalettePrivate), parent) { Q_D(QmlSystemPalette); - d->palette = qApp->palette(); + d->palette = QApplication::palette(); d->group = QPalette::Active; qApp->installEventFilter(this); } @@ -293,7 +293,7 @@ bool QmlSystemPalette::event(QEvent *event) { Q_D(QmlSystemPalette); if (event->type() == QEvent::ApplicationPaletteChange) { - d->palette = qApp->palette(); + d->palette = QApplication::palette(); emit paletteChanged(); return true; } |