forked from qt-creator/qt-creator
Remove dead code "< QT_VERSION_CHECK(5, 14, 0)"
Qt Creator required Qt 5.14 or higher. Let's removed the #idef-ed code for building against lower Qt versions. Add a comment in porting.h where we still need such code for sdktool. Change-Id: Ib330275208eec4a2f285b4b9f480530c171f538a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -94,9 +94,6 @@ GeneralSettingsWidget::GeneralSettingsWidget(GeneralSettings *q)
|
||||
tr("Show keyboard shortcuts in context menus (default: %1)")
|
||||
.arg(q->m_defaultShowShortcutsInContextMenu ? tr("on") : tr("off")));
|
||||
m_ui.showShortcutsInContextMenus->setChecked(GeneralSettings::showShortcutsInContextMenu());
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(5, 13, 0))
|
||||
m_ui.showShortcutsInContextMenus->setVisible(false);
|
||||
#endif
|
||||
|
||||
if (Utils::HostOsInfo::isMacHost()) {
|
||||
m_ui.dpiCheckbox->setVisible(false);
|
||||
@@ -250,9 +247,7 @@ void GeneralSettings::setShowShortcutsInContextMenu(bool show)
|
||||
ICore::settings()->setValueWithDefault(settingsKeyShortcutsInContextMenu,
|
||||
show,
|
||||
m_defaultShowShortcutsInContextMenu);
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
|
||||
QGuiApplication::styleHints()->setShowShortcutsInContextMenus(show);
|
||||
#endif
|
||||
}
|
||||
|
||||
GeneralSettings::GeneralSettings()
|
||||
|
||||
Reference in New Issue
Block a user