profiler.h 614 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2015 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <QWidget>
  6. class QAction;
  7. class QHideEvent;
  8. class QShowEvent;
  9. class MicroProfileDialog : public QWidget {
  10. Q_OBJECT
  11. public:
  12. explicit MicroProfileDialog(QWidget* parent = nullptr);
  13. /// Returns a QAction that can be used to toggle visibility of this dialog.
  14. QAction* toggleViewAction();
  15. protected:
  16. void showEvent(QShowEvent* ev) override;
  17. void hideEvent(QHideEvent* ev) override;
  18. private:
  19. QAction* toggle_view_action = nullptr;
  20. };