summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qbc.io>2019-08-15 14:36:33 +0900
committerTasuku Suzuki <tasuku.suzuki@qbc.io>2019-08-15 16:16:10 +0900
commitd0e7be8b1c77dea752193dfb6df8bf8b467c6560 (patch)
tree0865cd95de90ff601ac6c6d4f313cdcab26de285
parentb03ee91ebf31bf317e49cb1295a923bd7ed0d958 (diff)
Fix build without features.shortcut
Change-Id: I56ccf104c57e24824e8d09951bb27415307d5abc Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--src/widgets/widgets/qabstractspinbox.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/widgets/qabstractspinbox.cpp b/src/widgets/widgets/qabstractspinbox.cpp
index f5708788b8..d49d9dbd66 100644
--- a/src/widgets/widgets/qabstractspinbox.cpp
+++ b/src/widgets/widgets/qabstractspinbox.cpp
@@ -1321,7 +1321,9 @@ void QAbstractSpinBox::contextMenuEvent(QContextMenuEvent *event)
d->reset();
QAction *selAll = new QAction(tr("&Select All"), menu);
+#if QT_CONFIG(shortcut)
selAll->setShortcut(QKeySequence::SelectAll);
+#endif
menu->insertAction(d->edit->d_func()->selectAllAction,
selAll);
menu->removeAction(d->edit->d_func()->selectAllAction);