mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-25 11:49:04 +02:00
I'm tired of dealing with this tbh Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3706 Reviewed-by: Lizzie <lizzie@eden-emu.dev>
33 lines
749 B
C++
33 lines
749 B
C++
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef MIGRATION_DIALOG_H
|
|
#define MIGRATION_DIALOG_H
|
|
|
|
#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;
|
|
};
|
|
|
|
#endif // MIGRATION_DIALOG_H
|