From bac1963fa4e7fdf9b2f9b60568a1ebdb8935dc79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Fri, 11 Apr 2025 17:05:31 +0200 Subject: [PATCH] Add stretch toolbar actions to view menu --- mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 81a268f..adaa6e4 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -252,7 +252,6 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) settings.setValue("mainwindow/colormap", data); }); - QAction *thumbnailsAction = viewMenu->addAction(tr("Thumbnails"), Qt::Key_F2, [this](bool checked){ if(SettingsDialog::loadThumbsizes())m_ringList->clearThumbnails(); m_image->allocateThumbnails(m_ringList->imageNames()); @@ -263,6 +262,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) thumbnailsAction->setCheckable(true); QAction *slideshowAction = viewMenu->addAction(tr("Slideshow"), Qt::Key_F3, m_ringList, &ImageRingList::toggleSlideshow); slideshowAction->setCheckable(true); + viewMenu->addSeparator(); + viewMenu->addActions(m_stretchPanel->actions()); menuBar()->addMenu(viewMenu); QMenu *selectMenu = new QMenu(tr("Select"), this);