summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-29 17:43:11 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-29 17:43:11 +0000
commitb93621d2aed395767a27a80cdefc736b98976cfb (patch)
treee9e2ac44454d48f69f45ab0d91f64fb0d669403e /rbutil
parent322d2b46cd6fa67e62e5ee3e9198b8c48c766eca (diff)
downloadrockbox-b93621d2aed395767a27a80cdefc736b98976cfb.tar.gz
rockbox-b93621d2aed395767a27a80cdefc736b98976cfb.zip
add a "help" entry to the about menu. For now this opens the system browser with the rbutil wiki page.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14522 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp10
-rw-r--r--rbutil/rbutilqt/rbutilqt.h1
-rw-r--r--rbutil/rbutilqt/rbutilqtfrm.ui7
3 files changed, 17 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 78629b0d1b..196e079696 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -81,6 +81,7 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent)
connect(ui.tabWidget, SIGNAL(currentChanged(int)), this, SLOT(updateTabs(int)));
connect(ui.actionAbout_Qt, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
connect(ui.action_About, SIGNAL(triggered()), this, SLOT(about()));
+ connect(ui.action_Help, SIGNAL(triggered()), this, SLOT(help()));
connect(ui.action_Configure, SIGNAL(triggered()), this, SLOT(configDialog()));
connect(ui.buttonChangeDevice, SIGNAL(clicked()), this, SLOT(configDialog()));
connect(ui.buttonRockbox, SIGNAL(clicked()), this, SLOT(installBtn()));
@@ -205,7 +206,7 @@ void RbUtilQt::about()
QString rline = r.readAll();
about.browserCredits->insertPlainText(rline);
about.browserCredits->moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor);
- QString title = QString("<b>The Rockbox Utility</b> Version %1").arg(VERSION);
+ QString title = QString("<b>The Rockbox Utility</b><br/>Version %1").arg(VERSION);
about.labelTitle->setText(title);
about.labelHomepage->setText("<a href='http://www.rockbox.org'>http://www.rockbox.org</a>");
@@ -214,6 +215,13 @@ void RbUtilQt::about()
}
+void RbUtilQt::help()
+{
+ QUrl helpurl("http://www.rockbox.org/wiki/RockboxUtilityQt");
+ QDesktopServices::openUrl(helpurl);
+}
+
+
void RbUtilQt::configDialog()
{
Config *cw = new Config(this);
diff --git a/rbutil/rbutilqt/rbutilqt.h b/rbutil/rbutilqt/rbutilqt.h
index 51a9742d3c..4d889284a3 100644
--- a/rbutil/rbutilqt/rbutilqt.h
+++ b/rbutil/rbutilqt/rbutilqt.h
@@ -62,6 +62,7 @@ class RbUtilQt : public QMainWindow
private slots:
void about(void);
+ void help(void);
void configDialog(void);
void updateDevice(void);
void updateSettings(void);
diff --git a/rbutil/rbutilqt/rbutilqtfrm.ui b/rbutil/rbutilqt/rbutilqtfrm.ui
index 9e32cc1bd8..1a43586641 100644
--- a/rbutil/rbutilqt/rbutilqtfrm.ui
+++ b/rbutil/rbutilqt/rbutilqtfrm.ui
@@ -819,6 +819,8 @@ p, li { white-space: pre-wrap; }
</property>
<addaction name="action_About" />
<addaction name="actionAbout_Qt" />
+ <addaction name="separator" />
+ <addaction name="action_Help" />
</widget>
<addaction name="menu_File" />
<addaction name="menuAbout" />
@@ -857,6 +859,11 @@ p, li { white-space: pre-wrap; }
<string>About &amp;Qt</string>
</property>
</action>
+ <action name="action_Help" >
+ <property name="text" >
+ <string>&amp;Help</string>
+ </property>
+ </action>
</widget>
<tabstops>
<tabstop>tabWidget</tabstop>