Skip to content

Commit

Permalink
chore: ButtonPressKeys is only supported in Qt6
Browse files Browse the repository at this point in the history
add version control to ButtonPressKeys

Log: ButtonPressKeys is only supported in Qt6
  • Loading branch information
FeiWang1119 committed Jan 9, 2024
1 parent b877faf commit 6939985
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platformthemeplugin/qdeepintheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,10 @@ QVariant QDeepinTheme::themeHint(QPlatformTheme::ThemeHint hint) const
return true;
case ShowShortcutsInContextMenus:
return false;
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
case ButtonPressKeys:
return QVariant::fromValue(QList<Qt::Key>({ Qt::Key_Enter, Qt::Key_Return, Qt::Key_Space, Qt::Key_Select } ));
#endif
default:
break;
}
Expand Down

0 comments on commit 6939985

Please sign in to comment.