mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-08 11:03:25 -08:00
[Client] Settings: add top-right cogwheel shortcut (#7485)
* [Client] Settings: add top-right cogwheel shortcut Add a subtle flat settings button to the tab bar corner that opens the settings dialog via the existing menu action slot. Icon and tooltip follow the menu action in retranslateUi. * [Client] Settings: flat black-cogwheel corner entry per review --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
860625be4d
commit
4974cac59a
2 changed files with 20 additions and 0 deletions
|
|
@ -46,6 +46,7 @@
|
|||
#include <qtmetamacros.h>
|
||||
|
||||
class QAction;
|
||||
class QToolButton;
|
||||
class QWidget;
|
||||
struct LocalGameOptions;
|
||||
|
||||
|
|
@ -178,6 +179,7 @@ private:
|
|||
QList<QMenu *> tabMenus;
|
||||
QMenu *cockatriceMenu, *dbMenu, *tabsMenu, *helpMenu, *trayIconMenu;
|
||||
QAction *aAbout, *aSettings, *aShow, *aExit;
|
||||
QToolButton *settingsButton = nullptr;
|
||||
QAction *aConnect, *aDisconnect, *aRegister, *aForgotPassword, *aSinglePlayer, *aWatchReplay, *aFullScreen;
|
||||
QAction *aManageSets, *aEditTokens, *aOpenCustomFolder, *aOpenCustomsetsFolder, *aAddCustomSet,
|
||||
*aReloadCardDatabase;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue