summaryrefslogtreecommitdiffstats
path: root/application/pages/instance/ScreenshotsPage.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-07-17 02:09:54 +0200
committerPetr Mrázek <peterix@gmail.com>2019-07-17 02:09:54 +0200
commitedc5378333eb33a3d1c17df8385d1d3fe2206ad9 (patch)
tree32115a7a7d7b3a942c3c968143230b34ee422bb0 /application/pages/instance/ScreenshotsPage.cpp
parent95febe543615c16d5b97cdd6f379c9a62102321d (diff)
downloadMultiMC-edc5378333eb33a3d1c17df8385d1d3fe2206ad9.tar
MultiMC-edc5378333eb33a3d1c17df8385d1d3fe2206ad9.tar.gz
MultiMC-edc5378333eb33a3d1c17df8385d1d3fe2206ad9.tar.lz
MultiMC-edc5378333eb33a3d1c17df8385d1d3fe2206ad9.tar.xz
MultiMC-edc5378333eb33a3d1c17df8385d1d3fe2206ad9.zip
NOISSUE add spacer to the screenshot page toolbar
Diffstat (limited to 'application/pages/instance/ScreenshotsPage.cpp')
-rw-r--r--application/pages/instance/ScreenshotsPage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/application/pages/instance/ScreenshotsPage.cpp b/application/pages/instance/ScreenshotsPage.cpp
index 0c00d1c4..b470202f 100644
--- a/application/pages/instance/ScreenshotsPage.cpp
+++ b/application/pages/instance/ScreenshotsPage.cpp
@@ -223,6 +223,12 @@ ScreenshotsPage::ScreenshotsPage(QString path, QWidget *parent)
m_valid = FS::ensureFolderPathExists(m_folder);
ui->setupUi(this);
+
+ QWidget* spacer = new QWidget();
+ spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
+ // toolBar is a pointer to an existing toolbar
+ ui->toolBar->insertWidget(ui->actionView_Folder, spacer);
+
ui->listView->setIconSize(QSize(128, 128));
ui->listView->setGridSize(QSize(192, 160));
ui->listView->setSpacing(9);