profiler.h 647 B

123456789101112131415161718192021222324252627
  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 <QAbstractItemModel>
  6. #include <QDockWidget>
  7. #include <QTimer>
  8. #include "common/microprofile.h"
  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. };