new commandline arguments help text; refs #167

master
Marc Wäckerlin 10 years ago
parent 8df41b0b31
commit 0414b1ff46
  1. 5
      src/browser.hxx
  2. 8
      src/browser.ui

@ -55,6 +55,7 @@
#include <memory> #include <memory>
extern QString TMP; extern QString TMP;
QString helptext(); // from main.cxx
//! @addtogroup browser //! @addtogroup browser
//! @{ //! @{
@ -842,6 +843,10 @@ class Browser: public QMainWindow, protected Ui::Browser {
qbrowserlib::ErrorLog::instance().show(); qbrowserlib::ErrorLog::instance().show();
} }
void on_actionCommandline_triggered() {
QMessageBox::information(this, tr("Commandline Arguments"), helptext());
}
void on_actionAbout_triggered() { void on_actionAbout_triggered() {
QMessageBox::about(this, tr("About"), QMessageBox::about(this, tr("About"),
tr("%8\n" tr("%8\n"

@ -70,7 +70,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1009</width> <width>1009</width>
<height>25</height> <height>23</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuDatei"> <widget class="QMenu" name="menuDatei">
@ -114,6 +114,7 @@
</property> </property>
<addaction name="actionLoginCertificate"/> <addaction name="actionLoginCertificate"/>
<addaction name="actionErrorLog"/> <addaction name="actionErrorLog"/>
<addaction name="actionCommandline"/>
<addaction name="actionAbout"/> <addaction name="actionAbout"/>
<addaction name="actionDebugLog"/> <addaction name="actionDebugLog"/>
</widget> </widget>
@ -485,6 +486,11 @@
<string>Debug Log</string> <string>Debug Log</string>
</property> </property>
</action> </action>
<action name="actionCommandline">
<property name="text">
<string>Commandline</string>
</property>
</action>
</widget> </widget>
<resources> <resources>
<include location="resources.qrc"/> <include location="resources.qrc"/>

Loading…
Cancel
Save