File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ if (WITH_TTS)
6969 list (APPEND GD_QT_COMPONENTS TextToSpeech)
7070endif ()
7171
72- find_package (Qt6 REQUIRED COMPONENTS ${GD_QT_COMPONENTS} )
72+ find_package (Qt6 6.2 REQUIRED COMPONENTS ${GD_QT_COMPONENTS} )
7373
7474qt_standard_project_setup()
7575set (CMAKE_AUTORCC ON ) # not included in the qt_standard_project_setup
Original file line number Diff line number Diff line change 88bool KeyboardState::checkModifiersPressed ( int mask )
99{
1010 auto modifiers = QApplication::queryKeyboardModifiers ();
11-
12- return !( ( mask & Alt && !( modifiers. testFlag ( Qt::AltModifier ) ) )
13- || ( mask & Ctrl && !( modifiers. testFlag ( Qt::ControlModifier ) ) )
14- || ( mask & Shift && !( modifiers. testFlag ( Qt::ShiftModifier ) ) ) );
11+ return modifiers. testFlags ( { Qt::NoModifier | ( mask & Alt ? Qt::AltModifier : Qt::NoModifier )
12+ | ( mask & Win ? Qt::MetaModifier : Qt::NoModifier )
13+ | ( mask & Ctrl ? Qt::ControlModifier : Qt::NoModifier )
14+ | ( mask & Shift ? Qt::ShiftModifier : Qt::NoModifier ) } );
1515}
You can’t perform that action at this time.
0 commit comments