Commit 0ef2b489 authored by Ira Aspen's avatar Ira Aspen
Browse files

Refactored DlgAddSet class/functions to DlgAddSetResult

parent 5a975831
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <QPushButton> #include <QPushButton>
#include <QVBoxLayout> #include <QVBoxLayout>
DlgAddSet::DlgAddSet(QWidget *parent, bool success) : QDialog(parent) { DlgAddSetResult::DlgAddSetResult(QWidget *parent, bool success) : QDialog(parent) {
status = new QLabel(this); status = new QLabel(this);
restart = new QLabel(this); restart = new QLabel(this);
...@@ -31,7 +31,7 @@ DlgAddSet::DlgAddSet(QWidget *parent, bool success) : QDialog(parent) { ...@@ -31,7 +31,7 @@ DlgAddSet::DlgAddSet(QWidget *parent, bool success) : QDialog(parent) {
setLayout(parentLayout); setLayout(parentLayout);
} }
void DlgAddSet::closeDialog() void DlgAddSetResult::closeDialog()
{ {
accept(); accept();
} }
\ No newline at end of file
#ifndef DLG_ADD_SET_H #ifndef DLG_ADD_SET_RESULT_H
#define DLG_ADD_SET_H #define DLG_ADD_SET_RESULT_H
#include <QDialog> #include <QDialog>
#include <QLabel> #include <QLabel>
class DlgAddSet : public QDialog { class DlgAddSetResult : public QDialog {
Q_OBJECT Q_OBJECT
public: public:
DlgAddSet(QWidget *parent, bool success); DlgAddSetResult(QWidget *parent, bool success);
private slots: private slots:
void closeDialog(); void closeDialog();
private: private:
......
...@@ -906,7 +906,7 @@ void TabDeckEditor::actAddCustomSet() ...@@ -906,7 +906,7 @@ void TabDeckEditor::actAddCustomSet()
QString::number(maxIndex) + "." + QFileInfo(fileName).fileName() QString::number(maxIndex) + "." + QFileInfo(fileName).fileName()
); );
DlgAddSet dlg(this, res); DlgAddSetResult dlg(this, res);
dlg.exec(); dlg.exec();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment