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 <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) {
|
||||||
setLayout(parentLayout);
|
setLayout(parentLayout);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DlgAddSet::closeDialog()
|
void DlgAddSetResult::closeDialog()
|
||||||
{
|
{
|
||||||
accept();
|
accept();
|
||||||
}
|
}
|
|
@ -1,13 +1,13 @@
|
||||||
#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()
|
||||||
QString::number(maxIndex) + "." + QFileInfo(fileName).fileName()
|
QString::number(maxIndex) + "." + QFileInfo(fileName).fileName()
|
||||||
);
|
);
|
||||||
|
|
||||||
DlgAddSet dlg(this, res);
|
DlgAddSetResult dlg(this, res);
|
||||||
dlg.exec();
|
dlg.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue