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
0ef2b489
Commit
0ef2b489
authored
Feb 09, 2016
by
Ira Aspen
Browse files
Refactored DlgAddSet class/functions to DlgAddSetResult
parent
5a975831
Changes
3
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/dlg_add_set_result.cpp
View file @
0ef2b489
...
...
@@ -4,7 +4,7 @@
#include
<QPushButton>
#include
<QVBoxLayout>
DlgAddSet
::
DlgAddSet
(
QWidget
*
parent
,
bool
success
)
:
QDialog
(
parent
)
{
DlgAddSet
Result
::
DlgAddSet
Result
(
QWidget
*
parent
,
bool
success
)
:
QDialog
(
parent
)
{
status
=
new
QLabel
(
this
);
restart
=
new
QLabel
(
this
);
...
...
@@ -31,7 +31,7 @@ DlgAddSet::DlgAddSet(QWidget *parent, bool success) : QDialog(parent) {
setLayout
(
parentLayout
);
}
void
DlgAddSet
::
closeDialog
()
void
DlgAddSet
Result
::
closeDialog
()
{
accept
();
}
\ No newline at end of file
cockatrice/src/dlg_add_set_result.h
View file @
0ef2b489
#ifndef DLG_ADD_SET_H
#define DLG_ADD_SET_H
#ifndef DLG_ADD_SET_
RESULT_
H
#define DLG_ADD_SET_
RESULT_
H
#include
<QDialog>
#include
<QLabel>
class
DlgAddSet
:
public
QDialog
{
class
DlgAddSet
Result
:
public
QDialog
{
Q_OBJECT
public:
DlgAddSet
(
QWidget
*
parent
,
bool
success
);
DlgAddSet
Result
(
QWidget
*
parent
,
bool
success
);
private
slots
:
void
closeDialog
();
private:
...
...
cockatrice/src/tab_deck_editor.cpp
View file @
0ef2b489
...
...
@@ -906,7 +906,7 @@ void TabDeckEditor::actAddCustomSet()
QString
::
number
(
maxIndex
)
+
"."
+
QFileInfo
(
fileName
).
fileName
()
);
DlgAddSet
dlg
(
this
,
res
);
DlgAddSet
Result
dlg
(
this
,
res
);
dlg
.
exec
();
}
...
...
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