Bug #1672 » 1672_S3_1.patch
| client/gui-qt/menu.cpp | ||
|---|---|---|
|   }); | ||
|   act = menu->addAction(Q_(HELP_RULESET_ITEM)); | ||
| #ifdef __APPLE__ | ||
|   // only needed on Mac, prevents qt from moving the menu item | ||
|   act->setMenuRole(QAction::NoRole); | ||
| #endif // __APPLE__ | ||
|   QObject::connect(act, &QAction::triggered, [this]() { | ||
|     slot_help(HELP_RULESET_ITEM); | ||
|   }); | ||
|   act = menu->addAction(Q_(HELP_TILESET_ITEM)); | ||
| #ifdef __APPLE__ | ||
|   // only needed on Mac, prevents qt from moving the menu item | ||
|   act->setMenuRole(QAction::NoRole); | ||
| #endif // __APPLE__ | ||
|   QObject::connect(act, &QAction::triggered, [this]() { | ||
|     slot_help(HELP_TILESET_ITEM); | ||
|   }); | ||
|   act = menu->addAction(Q_(HELP_NATIONS_ITEM)); | ||
| #ifdef __APPLE__ | ||
|   // only needed on Mac, prevents qt from moving the menu item | ||
|   act->setMenuRole(QAction::NoRole); | ||
| #endif // __APPLE__ | ||
|   QObject::connect(act, &QAction::triggered, [this]() { | ||
|     slot_help(HELP_NATIONS_ITEM); | ||
|   }); | ||
| ... | ... | |
|   }); | ||
|   act = menu->addAction(Q_(HELP_ABOUT_ITEM)); | ||
| #ifdef __APPLE__ | ||
|   // only needed on Mac, prevents qt from moving the menu item | ||
|   act->setMenuRole(QAction::NoRole); | ||
| #endif // __APPLE__ | ||
|   QObject::connect(act, &QAction::triggered, [this]() { | ||
|     slot_help(HELP_ABOUT_ITEM); | ||
|   }); | ||
- « Previous
- 1
- 2
- 3
- 4
- Next »