Change button label and made it translatable
This commit is contained in:
parent
82a3deec30
commit
e0d76b60d0
2 changed files with 4 additions and 2 deletions
|
@ -504,7 +504,7 @@ UserInterfaceSettingsPage::UserInterfaceSettingsPage()
|
||||||
connect(soundPathClearButton, SIGNAL(clicked()), this, SLOT(soundPathClearButtonClicked()));
|
connect(soundPathClearButton, SIGNAL(clicked()), this, SLOT(soundPathClearButtonClicked()));
|
||||||
QPushButton *soundPathButton = new QPushButton("...");
|
QPushButton *soundPathButton = new QPushButton("...");
|
||||||
connect(soundPathButton, SIGNAL(clicked()), this, SLOT(soundPathButtonClicked()));
|
connect(soundPathButton, SIGNAL(clicked()), this, SLOT(soundPathButtonClicked()));
|
||||||
QPushButton *soundTestButton = new QPushButton(QString("Play test sound"));
|
soundTestButton = new QPushButton();
|
||||||
connect(soundTestButton, SIGNAL(clicked()), soundEngine, SLOT(cuckoo()));
|
connect(soundTestButton, SIGNAL(clicked()), soundEngine, SLOT(cuckoo()));
|
||||||
|
|
||||||
QGridLayout *soundGrid = new QGridLayout;
|
QGridLayout *soundGrid = new QGridLayout;
|
||||||
|
@ -513,7 +513,7 @@ UserInterfaceSettingsPage::UserInterfaceSettingsPage()
|
||||||
soundGrid->addWidget(soundPathEdit, 1, 1);
|
soundGrid->addWidget(soundPathEdit, 1, 1);
|
||||||
soundGrid->addWidget(soundPathClearButton, 1, 2);
|
soundGrid->addWidget(soundPathClearButton, 1, 2);
|
||||||
soundGrid->addWidget(soundPathButton, 1, 3);
|
soundGrid->addWidget(soundPathButton, 1, 3);
|
||||||
soundGrid->addWidget(soundTestButton, 1, 4);
|
soundGrid->addWidget(soundTestButton, 2, 1);
|
||||||
|
|
||||||
soundGroupBox = new QGroupBox;
|
soundGroupBox = new QGroupBox;
|
||||||
soundGroupBox->setLayout(soundGrid);
|
soundGroupBox->setLayout(soundGrid);
|
||||||
|
@ -542,6 +542,7 @@ void UserInterfaceSettingsPage::retranslateUi()
|
||||||
tapAnimationCheckBox->setText(tr("&Tap/untap animation"));
|
tapAnimationCheckBox->setText(tr("&Tap/untap animation"));
|
||||||
soundEnabledCheckBox->setText(tr("Enable &sounds"));
|
soundEnabledCheckBox->setText(tr("Enable &sounds"));
|
||||||
soundPathLabel->setText(tr("Path to sounds directory:"));
|
soundPathLabel->setText(tr("Path to sounds directory:"));
|
||||||
|
soundTestButton->setText(tr("Test system sound engine"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void UserInterfaceSettingsPage::soundPathClearButtonClicked()
|
void UserInterfaceSettingsPage::soundPathClearButtonClicked()
|
||||||
|
|
|
@ -92,6 +92,7 @@ private:
|
||||||
QLabel *soundPathLabel;
|
QLabel *soundPathLabel;
|
||||||
QLineEdit *soundPathEdit;
|
QLineEdit *soundPathEdit;
|
||||||
QGroupBox *generalGroupBox, *animationGroupBox, *soundGroupBox;
|
QGroupBox *generalGroupBox, *animationGroupBox, *soundGroupBox;
|
||||||
|
QPushButton *soundTestButton;
|
||||||
public:
|
public:
|
||||||
UserInterfaceSettingsPage();
|
UserInterfaceSettingsPage();
|
||||||
void retranslateUi();
|
void retranslateUi();
|
||||||
|
|
Loading…
Reference in a new issue