Options for Data Migration (#95)
Copy, move, or link Co-authored-by: KeatonTheBot <onikeaton@gmail.com> Signed-off-by: swurl <swurl@swurl.xyz> Reviewed-on: #95 Co-authored-by: swurl <swurl@swurl.xyz> Co-committed-by: swurl <swurl@swurl.xyz>
This commit is contained in:
parent
09c72e9f98
commit
28d2b06380
6 changed files with 270 additions and 57 deletions
30
src/yuzu/migration_dialog.h
Normal file
30
src/yuzu/migration_dialog.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
#ifndef MIGRATION_DIALOG_H
|
||||
#define MIGRATION_DIALOG_H
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QWidget>
|
||||
#include <QHBoxLayout>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
class MigrationDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
MigrationDialog(QWidget *parent = nullptr);
|
||||
|
||||
virtual ~MigrationDialog();
|
||||
|
||||
void setText(const QString &text);
|
||||
void addBox(QWidget *box);
|
||||
QAbstractButton *addButton(const QString &text, const bool reject = false);
|
||||
|
||||
QAbstractButton *clickedButton() const;
|
||||
|
||||
private:
|
||||
QLabel *m_text;
|
||||
QVBoxLayout *m_boxes;
|
||||
QHBoxLayout *m_buttons;
|
||||
|
||||
QAbstractButton *m_clickedButton;
|
||||
};
|
||||
|
||||
#endif // MIGRATION_DIALOG_H
|
Loading…
Add table
Add a link
Reference in a new issue