From a8c723326dcca545b57c2dde4804fe96da4e0c67 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Fri, 12 Feb 2016 14:49:37 +0100 Subject: [PATCH] Game tab: use short title for undocked wdgets fix #1777 --- cockatrice/src/tab_game.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cockatrice/src/tab_game.cpp b/cockatrice/src/tab_game.cpp index 8330e918..075f9880 100644 --- a/cockatrice/src/tab_game.cpp +++ b/cockatrice/src/tab_game.cpp @@ -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("REPLAY ")); + tabText.append(tr("Replay") + " "); if (!gameTypeInfo.isEmpty()) tabText.append(gameTypeInfo + " "); if (!gameDesc.isEmpty()) {