summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qstylehints.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qstylehints.cpp')
-rw-r--r--src/gui/kernel/qstylehints.cpp29
1 files changed, 12 insertions, 17 deletions
diff --git a/src/gui/kernel/qstylehints.cpp b/src/gui/kernel/qstylehints.cpp
index d688d0ae3aa..30a3be7d36b 100644
--- a/src/gui/kernel/qstylehints.cpp
+++ b/src/gui/kernel/qstylehints.cpp
@@ -122,20 +122,15 @@ int QStyleHints::touchDoubleTapDistance() const
}
/*!
- \property QStyleHints::appearance
- \brief the appearance of the platform theme
- \sa Qt::Appearance
+ \property QStyleHints::colorScheme
+ \brief the color scheme of the platform theme.
+ \sa Qt::ColorScheme
\since 6.5
*/
-Qt::Appearance QStyleHints::appearance() const
-{
- Q_D(const QStyleHints);
- return d->appearance();
-}
-
Qt::ColorScheme QStyleHints::colorScheme() const
{
- return Qt::ColorScheme(appearance());
+ Q_D(const QStyleHints);
+ return d->colorScheme();
}
/*!
@@ -597,17 +592,17 @@ int QStyleHints::mouseQuickSelectionThreshold() const
/*!
\internal
- QStyleHintsPrivate::setAppearance - set a new appearance.
- Set \a appearance as the new appearance of the QStyleHints.
- The appearanceChanged signal will be emitted if present and new appearance differ.
+ QStyleHintsPrivate::setColorScheme - set a new color scheme.
+ Set \a colorScheme as the new color scheme of the QStyleHints.
+ The colorSchemeChanged signal will be emitted if present and new color scheme differ.
*/
-void QStyleHintsPrivate::setAppearance(Qt::Appearance appearance)
+void QStyleHintsPrivate::setColorScheme(Qt::ColorScheme colorScheme)
{
- if (m_appearance == appearance)
+ if (m_colorScheme == colorScheme)
return;
- m_appearance = appearance;
+ m_colorScheme = colorScheme;
Q_Q(QStyleHints);
- emit q->appearanceChanged(appearance);
+ emit q->colorSchemeChanged(colorScheme);
}
QStyleHintsPrivate *QStyleHintsPrivate::get(QStyleHints *q)