|
@@ -1,3 +1,4 @@
|
|
|
+#include <QIcon>
|
|
|
#include <QGuiApplication>
|
|
|
#include <QScreen>
|
|
|
#include <QWidget>
|
|
@@ -18,6 +19,7 @@
|
|
|
|
|
|
MainWindow::MainWindow ()
|
|
|
{
|
|
|
+ setWindowIcon(QIcon("../dsl.ico"));
|
|
|
|
|
|
createActions ();
|
|
|
createMenus ();
|
|
@@ -180,6 +182,11 @@ MainWindow::readOnly ()
|
|
|
wa->repaint();
|
|
|
}
|
|
|
|
|
|
+void
|
|
|
+MainWindow::about (){
|
|
|
+ QMessageBox::information(this, "blop", "blop");
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
void
|
|
|
MainWindow::createActions ()
|
|
@@ -221,6 +228,9 @@ MainWindow::createActions ()
|
|
|
lastImageAct = new QAction (tr ("Last"), this);
|
|
|
lastImageAct->setShortcuts (QKeySequence::MoveToNextLine);
|
|
|
connect (lastImageAct, &QAction::triggered, this, &MainWindow::lastImage);
|
|
|
+
|
|
|
+ aboutAct = new QAction (tr ("About"), this);
|
|
|
+ connect (aboutAct, &QAction::triggered, this, &MainWindow::about);
|
|
|
}
|
|
|
|
|
|
void
|
|
@@ -243,4 +253,7 @@ MainWindow::createMenus ()
|
|
|
imageMenu->addAction (previousImageAct);
|
|
|
imageMenu->addAction (nextImageAct);
|
|
|
imageMenu->addAction (lastImageAct);
|
|
|
+
|
|
|
+
|
|
|
+ menuBar()->addAction(aboutAct);
|
|
|
}
|