Skip to content
Browse files

Allow to exit program.

  • Loading branch information...
1 parent fe04cb8 commit 6a259dd4ab09f7eaa3ba95445f15b7e1bbcb7135 @tstaerk committed
Showing with 17 additions and 5 deletions.
  1. +0 −1 mainwindow.cpp
  2. +5 −0 moreform.cpp
  3. +1 −0 moreform.h
  4. +11 −4 moreform.ui
View
1 mainwindow.cpp
@@ -111,4 +111,3 @@ void MainWindow::on_morebutton_clicked()
ui->gridLayout->addWidget(mf,1,0,1,3);
}
}
-
View
5 moreform.cpp
@@ -81,3 +81,8 @@ void MoreForm::on_clearbutton_clicked()
parent->clearactualpage();
parent->deletemoreform();
}
+
+void MoreForm::on_exitbutton_clicked()
+{
+ parent->deleteLater();
+}
View
1 moreform.h
@@ -30,6 +30,7 @@ private slots:
void on_turquoise_clicked();
void on_savebutton_clicked();
void on_clearbutton_clicked();
+ void on_exitbutton_clicked();
private:
Ui::MoreForm *ui;
View
15 moreform.ui
@@ -27,7 +27,7 @@
</property>
</widget>
</item>
- <item row="1" column="0" colspan="2">
+ <item row="1" column="0" colspan="3">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QToolButton" name="black">
@@ -3829,6 +3829,13 @@
</item>
</layout>
</item>
+ <item row="2" column="0">
+ <widget class="QPushButton" name="savebutton">
+ <property name="text">
+ <string>Save Slide</string>
+ </property>
+ </widget>
+ </item>
<item row="2" column="1">
<widget class="QPushButton" name="clearbutton">
<property name="text">
@@ -3836,10 +3843,10 @@
</property>
</widget>
</item>
- <item row="2" column="0">
- <widget class="QPushButton" name="savebutton">
+ <item row="2" column="2">
+ <widget class="QPushButton" name="exitbutton">
<property name="text">
- <string>Save Slide</string>
+ <string>Exit Quickpen</string>
</property>
</widget>
</item>

0 comments on commit 6a259dd

Please sign in to comment.
Something went wrong with that request. Please try again.