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
d02d3ed5
Commit
d02d3ed5
authored
Jan 17, 2015
by
Matt Lowe
Browse files
Refactored Deck Editor tab
- removed heap allocation
parent
5cf801eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/dlg_settings.cpp
View file @
d02d3ed5
...
@@ -537,14 +537,13 @@ void UserInterfaceSettingsPage::soundPathButtonClicked()
...
@@ -537,14 +537,13 @@ void UserInterfaceSettingsPage::soundPathButtonClicked()
DeckEditorSettingsPage
::
DeckEditorSettingsPage
()
DeckEditorSettingsPage
::
DeckEditorSettingsPage
()
{
{
priceTagsCheckBox
=
new
QCheckBox
;
priceTagsCheckBox
.
setChecked
(
settingsCache
->
getPriceTagFeature
());
priceTagsCheckBox
->
setChecked
(
settingsCache
->
getPriceTagFeature
());
connect
(
&
priceTagsCheckBox
,
SIGNAL
(
stateChanged
(
int
)),
settingsCache
,
SLOT
(
setPriceTagFeature
(
int
)));
connect
(
priceTagsCheckBox
,
SIGNAL
(
stateChanged
(
int
)),
settingsCache
,
SLOT
(
setPriceTagFeature
(
int
)));
connect
(
this
,
SIGNAL
(
priceTagSourceChanged
(
int
)),
settingsCache
,
SLOT
(
setPriceTagSource
(
int
)));
connect
(
this
,
SIGNAL
(
priceTagSourceChanged
(
int
)),
settingsCache
,
SLOT
(
setPriceTagSource
(
int
)));
QGridLayout
*
generalGrid
=
new
QGridLayout
;
QGridLayout
*
generalGrid
=
new
QGridLayout
;
generalGrid
->
addWidget
(
priceTagsCheckBox
,
0
,
0
);
generalGrid
->
addWidget
(
&
priceTagsCheckBox
,
0
,
0
);
generalGroupBox
=
new
QGroupBox
;
generalGroupBox
=
new
QGroupBox
;
generalGroupBox
->
setLayout
(
generalGrid
);
generalGroupBox
->
setLayout
(
generalGrid
);
...
@@ -557,7 +556,7 @@ DeckEditorSettingsPage::DeckEditorSettingsPage()
...
@@ -557,7 +556,7 @@ DeckEditorSettingsPage::DeckEditorSettingsPage()
void
DeckEditorSettingsPage
::
retranslateUi
()
void
DeckEditorSettingsPage
::
retranslateUi
()
{
{
priceTagsCheckBox
->
setText
(
tr
(
"Enable &price tag feature from deckbrew.com"
));
priceTagsCheckBox
.
setText
(
tr
(
"Enable &price tag feature from deckbrew.com"
));
generalGroupBox
->
setTitle
(
tr
(
"General"
));
generalGroupBox
->
setTitle
(
tr
(
"General"
));
}
}
...
...
cockatrice/src/dlg_settings.h
View file @
d02d3ed5
...
@@ -144,8 +144,7 @@ private slots:
...
@@ -144,8 +144,7 @@ private slots:
signals:
signals:
void
priceTagSourceChanged
(
int
_priceTagSource
);
void
priceTagSourceChanged
(
int
_priceTagSource
);
private:
private:
QCheckBox
*
priceTagsCheckBox
;
QCheckBox
priceTagsCheckBox
;
QRadioButton
*
priceTagSource0
,
*
priceTagSource1
;
QGroupBox
*
generalGroupBox
;
QGroupBox
*
generalGroupBox
;
};
};
...
...
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