summaryrefslogtreecommitdiffstats
path: root/application/pages/instance/ScreenshotsPage.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-07-17 02:01:29 +0200
committerPetr Mrázek <peterix@gmail.com>2019-07-17 02:01:29 +0200
commit95febe543615c16d5b97cdd6f379c9a62102321d (patch)
tree60c3cf31de93e0be96e28c85297e3440b1325e4c /application/pages/instance/ScreenshotsPage.h
parent5b153a516566446b88cca73afac34f9abfdd82e2 (diff)
downloadMultiMC-95febe543615c16d5b97cdd6f379c9a62102321d.tar
MultiMC-95febe543615c16d5b97cdd6f379c9a62102321d.tar.gz
MultiMC-95febe543615c16d5b97cdd6f379c9a62102321d.tar.lz
MultiMC-95febe543615c16d5b97cdd6f379c9a62102321d.tar.xz
MultiMC-95febe543615c16d5b97cdd6f379c9a62102321d.zip
NOISSUE convert rest of the instance pages to use toolbars for side menus
Diffstat (limited to 'application/pages/instance/ScreenshotsPage.h')
-rw-r--r--application/pages/instance/ScreenshotsPage.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/application/pages/instance/ScreenshotsPage.h b/application/pages/instance/ScreenshotsPage.h
index 928f134c..22ead49a 100644
--- a/application/pages/instance/ScreenshotsPage.h
+++ b/application/pages/instance/ScreenshotsPage.h
@@ -15,7 +15,7 @@
#pragma once
-#include <QWidget>
+#include <QMainWindow>
#include "pages/BasePage.h"
#include <MultiMC.h>
@@ -31,7 +31,7 @@ struct ScreenShot;
class ScreenshotList;
class ImgurAlbumCreation;
-class ScreenshotsPage : public QWidget, public BasePage
+class ScreenshotsPage : public QMainWindow, public BasePage
{
Q_OBJECT
@@ -67,11 +67,15 @@ public:
{
return !m_uploadActive;
}
+
+protected:
+ QMenu * createPopupMenu() override;
+
private slots:
- void on_uploadBtn_clicked();
- void on_deleteBtn_clicked();
- void on_renameBtn_clicked();
- void on_viewFolderBtn_clicked();
+ void on_actionUpload_triggered();
+ void on_actionDelete_triggered();
+ void on_actionRename_triggered();
+ void on_actionView_Folder_triggered();
void onItemActivated(QModelIndex);
private: