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
a16f8e02
Commit
a16f8e02
authored
Apr 23, 2015
by
Zach
Browse files
Merge pull request #1016 from poixen/add_remove_buttons
Updated + / - buttons
parents
924dd174
74f140ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/dlg_settings.cpp
View file @
a16f8e02
...
...
@@ -630,8 +630,10 @@ MessagesSettingsPage::MessagesSettingsPage()
messageList
->
addItem
(
settings
.
value
(
QString
(
"msg%1"
).
arg
(
i
)).
toString
());
aAdd
=
new
QAction
(
this
);
aAdd
->
setIcon
(
QIcon
(
":/resources/increment.svg"
));
connect
(
aAdd
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
actAdd
()));
aRemove
=
new
QAction
(
this
);
aRemove
->
setIcon
(
QIcon
(
":/resources/decrement.svg"
));
connect
(
aRemove
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
actRemove
()));
QToolBar
*
messageToolBar
=
new
QToolBar
;
...
...
@@ -640,8 +642,8 @@ MessagesSettingsPage::MessagesSettingsPage()
messageToolBar
->
addAction
(
aRemove
);
QHBoxLayout
*
messageListLayout
=
new
QHBoxLayout
;
messageListLayout
->
addWidget
(
messageList
);
messageListLayout
->
addWidget
(
messageToolBar
);
messageListLayout
->
addWidget
(
messageList
);
messageShortcuts
=
new
QGroupBox
;
messageShortcuts
->
setLayout
(
messageListLayout
);
...
...
@@ -704,8 +706,6 @@ void MessagesSettingsPage::actRemove()
void
MessagesSettingsPage
::
retranslateUi
()
{
aAdd
->
setText
(
tr
(
"&Add"
));
aRemove
->
setText
(
tr
(
"&Remove"
));
chatGroupBox
->
setTitle
(
tr
(
"Chat settings"
));
chatMentionCheckBox
.
setText
(
tr
(
"Enable chat mentions"
));
messageShortcuts
->
setTitle
(
tr
(
"In-game message macros"
));
...
...
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