|
From: Tapio V. <aa...@us...> - 2011-02-22 13:01:13
|
Author: Tapio Vierros <tap...@gm...>
Date: Tue Feb 22 15:00:26 2011 +0200
Added AboutQt dialog.
---
editor.ui | 8 +++++++-
editorapp.cc | 5 +++++
editorapp.hh | 1 +
3 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/editor.ui b/editor.ui
index 80cab1e..9c2e5b2 100644
--- a/editor.ui
+++ b/editor.ui
@@ -47,7 +47,7 @@
<rect>
<x>0</x>
<y>0</y>
- <width>534</width>
+ <width>674</width>
<height>227</height>
</rect>
</property>
@@ -548,6 +548,7 @@
<addaction name="actionGettingStarted"/>
<addaction name="actionWhatsThis"/>
<addaction name="separator"/>
+ <addaction name="actionAboutQt"/>
<addaction name="actionAbout"/>
</widget>
<widget class="QMenu" name="menuInsert">
@@ -806,6 +807,11 @@
<string>F1</string>
</property>
</action>
+ <action name="actionAboutQt">
+ <property name="text">
+ <string>About Qt...</string>
+ </property>
+ </action>
</widget>
<resources/>
<connections>
diff --git a/editorapp.cc b/editorapp.cc
index 1a6a054..4fc7a00 100644
--- a/editorapp.cc
+++ b/editorapp.cc
@@ -683,6 +683,11 @@ void EditorApp::on_actionWhatsThis_triggered()
QWhatsThis::enterWhatsThisMode();
}
+void EditorApp::on_actionAboutQt_triggered()
+{
+ QApplication::aboutQt();
+}
+
void EditorApp::on_actionAbout_triggered()
{
AboutDialog aboutDialog(this);
diff --git a/editorapp.hh b/editorapp.hh
index 99f528e..50174aa 100644
--- a/editorapp.hh
+++ b/editorapp.hh
@@ -101,6 +101,7 @@ public slots:
void on_actionGettingStarted_triggered();
void on_actionWhatsThis_triggered();
void on_actionAbout_triggered();
+ void on_actionAboutQt_triggered();
// Note properties tab
void on_txtTitle_editingFinished();
|