Skip to content

Commit

Permalink
Move PreselectFirstFileInDirectory theme hint from QGtk3Theme to QGno…
Browse files Browse the repository at this point in the history
…meTheme

It doesn't use any gtk API, so can live in QGnomeTheme

Pick-to: 6.4
Change-Id: Iff0391de6f01a03981f6e45b04fe9824fd2becfc
Reviewed-by: Mitch Curtis <[email protected]>
  • Loading branch information
ilya-fedin committed Aug 22, 2022
1 parent 62d957f commit cf6ab64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/gui/platform/unix/qgenericunixthemes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,8 @@ QVariant QGnomeTheme::themeHint(QPlatformTheme::ThemeHint hint) const
case QPlatformTheme::ButtonPressKeys:
return QVariant::fromValue(
QList<Qt::Key>({ Qt::Key_Space, Qt::Key_Return, Qt::Key_Enter, Qt::Key_Select }));
case QPlatformTheme::PreselectFirstFileInDirectory:
return true;
default:
break;
}
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/platformthemes/gtk3/qgtk3theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ 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);
}
Expand Down

0 comments on commit cf6ab64

Please sign in to comment.