mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-27 00:53:55 -07:00
translation
This commit is contained in:
parent
e6a419aa3d
commit
8daa81e462
5 changed files with 181 additions and 96 deletions
|
|
@ -9,8 +9,8 @@ GameSelector::GameSelector(Client *_client, QWidget *parent)
|
|||
gameListModel = new GamesModel(this);
|
||||
gameListView->setModel(gameListModel);
|
||||
|
||||
createButton = new QPushButton(tr("C&reate"));
|
||||
joinButton = new QPushButton(tr("&Join"));
|
||||
createButton = new QPushButton;
|
||||
joinButton = new QPushButton;
|
||||
QHBoxLayout *buttonLayout = new QHBoxLayout;
|
||||
buttonLayout->addStretch();
|
||||
buttonLayout->addWidget(createButton);
|
||||
|
|
@ -20,6 +20,7 @@ GameSelector::GameSelector(Client *_client, QWidget *parent)
|
|||
mainLayout->addWidget(gameListView);
|
||||
mainLayout->addLayout(buttonLayout);
|
||||
|
||||
retranslateUi();
|
||||
setLayout(mainLayout);
|
||||
|
||||
setMinimumWidth(gameListView->columnWidth(0) * gameListModel->columnCount());
|
||||
|
|
@ -94,3 +95,9 @@ void GameSelector::disableGameList()
|
|||
hide();
|
||||
gameListModel->cleanList();
|
||||
}
|
||||
|
||||
void GameSelector::retranslateUi()
|
||||
{
|
||||
createButton->setText(tr("C&reate"));
|
||||
joinButton->setText(tr("&Join"));
|
||||
}
|
||||
|
|
@ -15,6 +15,7 @@ public:
|
|||
GameSelector(Client *_client, QWidget *parent = 0);
|
||||
void enableGameList();
|
||||
void disableGameList();
|
||||
void retranslateUi();
|
||||
private slots:
|
||||
void actCreate();
|
||||
void actRefresh();
|
||||
|
|
|
|||
|
|
@ -216,6 +216,7 @@ void MainWindow::retranslateUi()
|
|||
|
||||
cardInfo->retranslateUi();
|
||||
chatWidget->retranslateUi();
|
||||
gameSelector->retranslateUi();
|
||||
}
|
||||
|
||||
void MainWindow::createActions()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue