Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
e0d76b60
Commit
e0d76b60
authored
Oct 14, 2014
by
Fabio Bas
Browse files
Change button label and made it translatable
parent
82a3deec
Changes
2
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/dlg_settings.cpp
View file @
e0d76b60
...
...
@@ -504,7 +504,7 @@ UserInterfaceSettingsPage::UserInterfaceSettingsPage()
connect
(
soundPathClearButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
soundPathClearButtonClicked
()));
QPushButton
*
soundPathButton
=
new
QPushButton
(
"..."
);
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
()));
QGridLayout
*
soundGrid
=
new
QGridLayout
;
...
...
@@ -513,7 +513,7 @@ UserInterfaceSettingsPage::UserInterfaceSettingsPage()
soundGrid
->
addWidget
(
soundPathEdit
,
1
,
1
);
soundGrid
->
addWidget
(
soundPathClearButton
,
1
,
2
);
soundGrid
->
addWidget
(
soundPathButton
,
1
,
3
);
soundGrid
->
addWidget
(
soundTestButton
,
1
,
4
);
soundGrid
->
addWidget
(
soundTestButton
,
2
,
1
);
soundGroupBox
=
new
QGroupBox
;
soundGroupBox
->
setLayout
(
soundGrid
);
...
...
@@ -542,6 +542,7 @@ void UserInterfaceSettingsPage::retranslateUi()
tapAnimationCheckBox
->
setText
(
tr
(
"&Tap/untap animation"
));
soundEnabledCheckBox
->
setText
(
tr
(
"Enable &sounds"
));
soundPathLabel
->
setText
(
tr
(
"Path to sounds directory:"
));
soundTestButton
->
setText
(
tr
(
"Test system sound engine"
));
}
void
UserInterfaceSettingsPage
::
soundPathClearButtonClicked
()
...
...
cockatrice/src/dlg_settings.h
View file @
e0d76b60
...
...
@@ -92,6 +92,7 @@ private:
QLabel
*
soundPathLabel
;
QLineEdit
*
soundPathEdit
;
QGroupBox
*
generalGroupBox
,
*
animationGroupBox
,
*
soundGroupBox
;
QPushButton
*
soundTestButton
;
public:
UserInterfaceSettingsPage
();
void
retranslateUi
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment