You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
678 B

// 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;
};