mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
updated German translation; added some missing retranslateUi() calls
This commit is contained in:
parent
95cd293b9c
commit
eb927d77c3
7 changed files with 437 additions and 372 deletions
|
|
@ -97,21 +97,26 @@ TabSupervisor::~TabSupervisor()
|
|||
void TabSupervisor::retranslateUi()
|
||||
{
|
||||
QList<Tab *> tabs;
|
||||
if (tabServer)
|
||||
tabs.append(tabServer);
|
||||
if (tabDeckStorage)
|
||||
tabs.append(tabDeckStorage);
|
||||
tabs.append(tabServer);
|
||||
tabs.append(tabReplays);
|
||||
tabs.append(tabDeckStorage);
|
||||
tabs.append(tabAdmin);
|
||||
tabs.append(tabUserLists);
|
||||
QMapIterator<int, TabRoom *> roomIterator(roomTabs);
|
||||
while (roomIterator.hasNext())
|
||||
tabs.append(roomIterator.next().value());
|
||||
QMapIterator<int, TabGame *> gameIterator(gameTabs);
|
||||
while (gameIterator.hasNext())
|
||||
tabs.append(gameIterator.next().value());
|
||||
QListIterator<TabGame *> replayIterator(replayTabs);
|
||||
while (replayIterator.hasNext())
|
||||
tabs.append(replayIterator.next());
|
||||
|
||||
for (int i = 0; i < tabs.size(); ++i) {
|
||||
setTabText(indexOf(tabs[i]), tabs[i]->getTabText());
|
||||
tabs[i]->retranslateUi();
|
||||
}
|
||||
for (int i = 0; i < tabs.size(); ++i)
|
||||
if (tabs[i]) {
|
||||
setTabText(indexOf(tabs[i]), tabs[i]->getTabText());
|
||||
tabs[i]->retranslateUi();
|
||||
}
|
||||
}
|
||||
|
||||
AbstractClient *TabSupervisor::getClient() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue