Fix build without features.shortcut
Change-Id: I56ccf104c57e24824e8d09951bb27415307d5abc Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
b03ee91ebf
commit
d0e7be8b1c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user