Skip to content

Commit 82624bd

Browse files
committed
maybe fix QT6 + GCC 15 builds?
1 parent 18073f5 commit 82624bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MainWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3270,7 +3270,7 @@ void MainWindow::action_Mark_Shortcut() {
32703270

32713271
if (DocumentWidget *document = currentDocument()) {
32723272
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
3273-
const Qt::Key key = sequence[1].key();
3273+
const auto key = static_cast<int>(sequence[1].key());
32743274
#else
32753275
const int key = sequence[1];
32763276
#endif
@@ -3355,7 +3355,7 @@ void MainWindow::action_Goto_Mark_Shortcut_Helper(bool shifted) {
33553355
if (DocumentWidget *document = currentDocument()) {
33563356

33573357
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
3358-
const Qt::Key key = sequence[1].key();
3358+
const auto key = static_cast<int>(sequence[1].key());
33593359
#else
33603360
const int key = sequence[1];
33613361
#endif

0 commit comments

Comments
 (0)