Refactored DlgAddSet class/functions to DlgAddSetResult
This commit is contained in:
parent
5a975831d4
commit
0ef2b48902
3 changed files with 7 additions and 7 deletions
|
@ -4,7 +4,7 @@
|
|||
#include <QPushButton>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
DlgAddSet::DlgAddSet(QWidget *parent, bool success) : QDialog(parent) {
|
||||
DlgAddSetResult::DlgAddSetResult(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 DlgAddSetResult::closeDialog()
|
||||
{
|
||||
accept();
|
||||
}
|
|
@ -1,13 +1,13 @@
|
|||
#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 DlgAddSetResult : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
DlgAddSet(QWidget *parent, bool success);
|
||||
DlgAddSetResult(QWidget *parent, bool success);
|
||||
private slots:
|
||||
void closeDialog();
|
||||
private:
|
||||
|
|
|
@ -906,7 +906,7 @@ void TabDeckEditor::actAddCustomSet()
|
|||
QString::number(maxIndex) + "." + QFileInfo(fileName).fileName()
|
||||
);
|
||||
|
||||
DlgAddSet dlg(this, res);
|
||||
DlgAddSetResult dlg(this, res);
|
||||
dlg.exec();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue