mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 08:33:54 -07:00
[LayoutSettings] Refactor how widgetSize settings are managed (#6594)
This commit is contained in:
parent
1eb6027443
commit
ac7ff3a0e9
8 changed files with 92 additions and 211 deletions
|
|
@ -94,6 +94,7 @@ private:
|
|||
QMenu *menu;
|
||||
QAction *aVisible;
|
||||
QAction *aFloating;
|
||||
QSize defaultSize;
|
||||
};
|
||||
|
||||
QMap<QDockWidget *, DockActions> dockToActions;
|
||||
|
|
@ -117,7 +118,7 @@ private:
|
|||
void createMenuItems();
|
||||
void createReplayMenuItems();
|
||||
void createViewMenuItems();
|
||||
void registerDockWidget(QMenu *_viewMenu, QDockWidget *widget);
|
||||
void registerDockWidget(QMenu *_viewMenu, QDockWidget *widget, const QSize &defaultSize);
|
||||
void createCardInfoDock(bool bReplay = false);
|
||||
void createPlayerListDock(bool bReplay = false);
|
||||
void createMessageDock(bool bReplay = false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue