diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2021-11-25 15:45:47 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2022-01-07 13:31:38 +0000 |
commit | 75abba6487dccce9de304b5132e2ce6ff5171427 (patch) | |
tree | 98453202f0fd11a3a23703d7cb43057a3c07c3b0 /src/plugins/platformthemes | |
parent | b13ee89d20013ba4122e5539e9b5a0b65ee3ab6a (diff) |
Add PreselectFirstFileInDirectory platform theme hint
This allows Qt Quick Dialogs to accurately check whether it should
select the first file in a directory when a file dialog is opened.
While we're here, fix an incorrect version on the last theme hint
that was added.
Task-number: QTBUG-98562
Change-Id: I08cc8a0fbed28a42d1212016c6ee7fc5459578bf
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/plugins/platformthemes')
-rw-r--r-- | src/plugins/platformthemes/gtk3/qgtk3theme.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platformthemes/gtk3/qgtk3theme.cpp b/src/plugins/platformthemes/gtk3/qgtk3theme.cpp index a47720384c..f7ccbbd118 100644 --- a/src/plugins/platformthemes/gtk3/qgtk3theme.cpp +++ b/src/plugins/platformthemes/gtk3/qgtk3theme.cpp @@ -135,6 +135,8 @@ QVariant QGtk3Theme::themeHint(QPlatformTheme::ThemeHint hint) const return QVariant(gtkSetting("gtk-icon-theme-name")); case QPlatformTheme::SystemIconFallbackThemeName: return QVariant(gtkSetting("gtk-fallback-icon-theme")); + case QPlatformTheme::PreselectFirstFileInDirectory: + return true; default: return QGnomeTheme::themeHint(hint); } |