From de1bf388cb1fb2ab680aade162af9f7e9180d6b1 Mon Sep 17 00:00:00 2001 From: bgallois Date: Mon, 31 Oct 2022 07:58:11 +0100 Subject: [PATCH] [feat] add action for toolbar --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f6eb5d5..426b2ed 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -167,6 +167,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), statusMessage->setText(tr("No journal is opened")); } }); + ui->menuOptions->addAction(ui->toolBar->toggleViewAction()); connect(ui->actionBackup, &QAction::triggered, this, &MainWindow::backup); connect(ui->actionClose, &QAction::triggered, this, &MainWindow::close); connect(ui->actionAboutQt, &QAction::triggered, qApp, &QApplication::aboutQt); @@ -194,7 +195,6 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), QByteArray version = downloadHttpFile(QUrl("https://raw.githubusercontent.com/bgallois/OpenJournal/master/changelog.md")).mid(3, 5); QApplication::restoreOverrideCursor(); QString status; - qInfo() << version << QApplication::applicationVersion(); if (version == QApplication::applicationVersion()) { status = tr("There is NO new stable release of OpenJournal."); }