blob: 1cd0f7576037c89654ce362ad1a5013df40436fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QHBoxLayout>
#include <QMessageBox>
#include <QVBoxLayout>
#include <QWidget>
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;
};
|