Skip to content

Commit

Permalink
ui: fix key sequence load with Qt 6.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallegari committed Nov 16, 2024
1 parent 082ccae commit 3022ee5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/virtualconsole/vcwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,8 @@ QKeySequence VCWidget::stripKeySequence(const QKeySequence& seq)
keys[i] = seq[i];
}
#else
QKeyCombination keys[4] = { Qt::Key_unknown, Qt::Key_unknown, Qt::Key_unknown, Qt::Key_unknown};
QKeyCombination keys[4] = { Qt::Key_unknown, QKeyCombination::fromCombined(0),
QKeyCombination::fromCombined(0), QKeyCombination::fromCombined(0)};
for (int i = 0; i < (int)seq.count() && i < 4; i++)
{
if ((seq[i].toCombined() & Qt::ControlModifier) != 0)
Expand Down

0 comments on commit 3022ee5

Please sign in to comment.