mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -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"));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue