2015-02-05 16:53:25 +00: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 14:07:09 +00:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QAction;
|
|
|
|
class QHideEvent;
|
|
|
|
class QShowEvent;
|
2015-08-17 21:25:21 +00:00
|
|
|
|
|
|
|
class MicroProfileDialog : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2016-12-11 12:22:10 +00:00
|
|
|
explicit MicroProfileDialog(QWidget* parent = nullptr);
|
2015-08-17 21:25:21 +00: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;
|
|
|
|
};
|