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
a8c72332
Commit
a8c72332
authored
Feb 12, 2016
by
Fabio Bas
Browse files
Game tab: use short title for undocked wdgets
fix #1777
parent
ae8296a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/tab_game.cpp
View file @
a8c72332
...
...
@@ -440,13 +440,13 @@ TabGame::~TabGame()
void
TabGame
::
retranslateUi
()
{
QString
tabText
=
getTabText
()
+
" - "
;
QString
tabText
=
" | "
+
(
replay
?
tr
(
"Replay"
)
:
tr
(
"Game"
))
+
" #"
+
QString
::
number
(
gameInfo
.
game_id
())
;
cardInfoDock
->
setWindowTitle
((
cardInfoDock
->
isWindow
()
?
tabText
:
QString
())
+
tr
(
"Card Info"
)
);
playerListDock
->
setWindowTitle
((
playerListDock
->
isWindow
()
?
tabText
:
QString
())
+
tr
(
"Player List"
)
);
messageLayoutDock
->
setWindowTitle
((
messageLayoutDock
->
isWindow
()
?
tabText
:
QString
())
+
tr
(
"Messages"
)
);
cardInfoDock
->
setWindowTitle
(
tr
(
"Card Info"
)
+
(
cardInfoDock
->
isWindow
()
?
tabText
:
QString
()));
playerListDock
->
setWindowTitle
(
tr
(
"Player List"
)
+
(
playerListDock
->
isWindow
()
?
tabText
:
QString
()));
messageLayoutDock
->
setWindowTitle
(
tr
(
"Messages"
)
+
(
messageLayoutDock
->
isWindow
()
?
tabText
:
QString
()));
if
(
replayDock
)
replayDock
->
setWindowTitle
((
replayDock
->
isWindow
()
?
tabText
:
QString
())
+
tr
(
"Replay Timeline"
)
);
replayDock
->
setWindowTitle
(
tr
(
"Replay Timeline"
)
+
(
replayDock
->
isWindow
()
?
tabText
:
QString
()));
if
(
phasesMenu
)
{
for
(
int
i
=
0
;
i
<
phaseActions
.
size
();
++
i
)
...
...
@@ -1165,7 +1165,7 @@ QString TabGame::getTabText() const
QString
tabText
;
if
(
replay
)
tabText
.
append
(
tr
(
"R
EPLAY
"
)
)
;
tabText
.
append
(
tr
(
"R
eplay"
)
+
"
"
);
if
(
!
gameTypeInfo
.
isEmpty
())
tabText
.
append
(
gameTypeInfo
+
" "
);
if
(
!
gameDesc
.
isEmpty
())
{
...
...
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