2015-02-05 17:53:25 +01:00
|
|
|
// Copyright 2015 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-04-03 16:07:09 +02:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QAction;
|
|
|
|
class QHideEvent;
|
|
|
|
class QShowEvent;
|
2015-08-17 23:25:21 +02:00
|
|
|
|
|
|
|
class MicroProfileDialog : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2016-12-11 13:22:10 +01:00
|
|
|
explicit MicroProfileDialog(QWidget* parent = nullptr);
|
2015-08-17 23:25:21 +02:00
|
|
|
|
|
|
|
/// Returns a QAction that can be used to toggle visibility of this dialog.
|
|
|
|
QAction* toggleViewAction();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void showEvent(QShowEvent* ev) override;
|
|
|
|
void hideEvent(QHideEvent* ev) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QAction* toggle_view_action = nullptr;
|
|
|
|
};
|