Skip to content

Commit

Permalink
compatibility with old Qt version
Browse files Browse the repository at this point in the history
  • Loading branch information
stiglers-eponym committed Apr 16, 2023
1 parent 97a8079 commit e53b584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/settingswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,9 @@ void SettingsWidget::initMisc()
void SettingsWidget::appendShortcut()
{
QComboBox *select_menu = new QComboBox(shortcuts);
#if (QT_VERSION >= QT_VERSION_CHECK(5,15,0))
select_menu->setPlaceholderText(tr("tool/action"));
#endif
select_menu->addItem(tr("tool..."), QVariant::fromValue(Action::InvalidAction));
for (auto it=string_to_action_map.cbegin(); it!=string_to_action_map.cend(); ++it)
select_menu->addItem(tr(it.key().toLatin1().constData()), QVariant::fromValue(*it));
Expand Down

0 comments on commit e53b584

Please sign in to comment.