From c68fc4dca5c610b571e6c16a2677adbc35a75707 Mon Sep 17 00:00:00 2001 From: NeoTheFox Date: Wed, 4 Mar 2015 14:38:35 +0300 Subject: [PATCH] Ui tweaks Added "About Qt" --- RepRaptor.pro | 1 + graphics.qrc | 1 + icons/exit.png | Bin 0 -> 544 bytes mainwindow.cpp | 5 +++++ mainwindow.h | 2 ++ mainwindow.ui | 14 ++++++++++++++ 6 files changed, 23 insertions(+) create mode 100644 icons/exit.png diff --git a/RepRaptor.pro b/RepRaptor.pro index 50e7e87..1d65d70 100644 --- a/RepRaptor.pro +++ b/RepRaptor.pro @@ -1,6 +1,7 @@ #------------------------------------------------- # # Project created by QtCreator 2015-02-26T16:14:20 +# Licenced on terms of GNU GPL v2 licence # #------------------------------------------------- diff --git a/graphics.qrc b/graphics.qrc index 84edab9..b04c82a 100644 --- a/graphics.qrc +++ b/graphics.qrc @@ -8,5 +8,6 @@ icons/sd.png icons/settings.png icons/about.png + icons/exit.png diff --git a/icons/exit.png b/icons/exit.png new file mode 100644 index 0000000000000000000000000000000000000000..6b9fa6dd36ee8165272a13dd263f573507c78ca6 GIT binary patch literal 544 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7BuiW)N`mv#O3D+9QW+dm z@{>{(JaZG%Q-e|yQz{EjrrIztFdp)BaSW-rwItZqpUF|6Ry(1|P^ik(M5^bh)XF~| zIU6Q6NhCYzWNg@=AaWt#UcAA^WgqngJacrW21xX9hOjs}w`hnRn*03By?JtrM5muQ z`)*HV{`0hNExEU6Je_&Cr+HzJS)2N$Ft}2FNL|&&ZY@lubgs7M^|A-r>f!= z&5&smPo$)*4Rbb;I_kSJBvoOW$BDe{-2oac$Gw(%-E`%ee!kBrVL1xmt zt`dChFSgv~U~8_(-YPP)D(IQ=a+YJ~o@-2;y4CdOrPnKsYVG9Xs%>4DrA=dw*(DYb z{NlxdJ?|{mA8%$9yWMi{o#@(|I{1h&z=10) ui->estepspin->setSingleStep(10); else if(arg1.toFloat() >= 1) ui->estepspin->setSingleStep(1); } + +void MainWindow::on_actionAbout_Qt_triggered() +{ + qApp->aboutQt(); +} diff --git a/mainwindow.h b/mainwindow.h index 4e480de..3b33f34 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -123,6 +123,8 @@ private slots: void serialError(QSerialPort::SerialPortError error); void on_actionPrint_from_SD_triggered(); + void on_actionAbout_Qt_triggered(); + signals: void sdReady(); }; diff --git a/mainwindow.ui b/mainwindow.ui index 941f993..fe64b9f 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -554,6 +554,7 @@ Help + @@ -633,6 +634,10 @@ + + + :/icons/exit.png:/icons/exit.png + Exit @@ -653,6 +658,10 @@ + + + :/icons/about.png:/icons/about.png + About @@ -669,6 +678,11 @@ Print from SD... + + + About Qt + +