Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
ae8296a5
Commit
ae8296a5
authored
Feb 11, 2016
by
Fabio Bas
Browse files
Game tab: reset docks sizes on "reset layout"
parent
058b9134
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/tab_game.cpp
View file @
ae8296a5
...
...
@@ -1420,7 +1420,25 @@ void TabGame::actResetLayout()
addDockWidget
(
Qt
::
BottomDockWidgetArea
,
replayDock
);
aReplayDockVisible
->
setChecked
(
true
);
aReplayDockFloating
->
setChecked
(
false
);
cardInfoDock
->
setMinimumSize
(
250
,
360
);
cardInfoDock
->
setMaximumSize
(
250
,
360
);
messageLayoutDock
->
setMinimumSize
(
250
,
200
);
messageLayoutDock
->
setMaximumSize
(
250
,
200
);
playerListDock
->
setMinimumSize
(
250
,
50
);
playerListDock
->
setMaximumSize
(
250
,
50
);
replayDock
->
setMinimumSize
(
900
,
100
);
replayDock
->
setMaximumSize
(
900
,
100
);
}
else
{
cardInfoDock
->
setMinimumSize
(
250
,
360
);
cardInfoDock
->
setMaximumSize
(
250
,
360
);
messageLayoutDock
->
setMinimumSize
(
250
,
250
);
messageLayoutDock
->
setMaximumSize
(
250
,
250
);
playerListDock
->
setMinimumSize
(
250
,
50
);
playerListDock
->
setMaximumSize
(
250
,
50
);
}
QTimer
::
singleShot
(
100
,
this
,
SLOT
(
freeDocksSize
()));
}
void
TabGame
::
createPlayAreaWidget
(
bool
bReplay
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment