Files
eden/src/yuzu/migration_dialog.h
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
678 B
C++
Raw Normal View History

// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
2026-06-04 05:49:07 +02:00
#pragma once
2025-05-10 15:40:15 +00:00
#include <QHBoxLayout>
#include <QMessageBox>
2025-05-10 15:40:15 +00:00
#include <QVBoxLayout>
#include <QWidget>
2025-05-10 15:40:15 +00:00
class MigrationDialog : public QDialog {
Q_OBJECT
public:
MigrationDialog(QWidget* parent = nullptr);
2025-05-10 15:40:15 +00:00
virtual ~MigrationDialog();
void setText(const QString& text);
void addBox(QWidget* box);
QAbstractButton* addButton(const QString& text, const bool reject = false);
2025-05-10 15:40:15 +00:00
QAbstractButton* clickedButton() const;
2025-05-10 15:40:15 +00:00
private:
QLabel* m_text;
QVBoxLayout* m_boxes;
QHBoxLayout* m_buttons;
2025-05-10 15:40:15 +00:00
QAbstractButton* m_clickedButton;
2025-05-10 15:40:15 +00:00
};