mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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
This commit is contained in:
parent
322d2b46cd
commit
b93621d2ae
3 changed files with 17 additions and 1 deletions
|
|
@ -81,6 +81,7 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent)
|
||||||
connect(ui.tabWidget, SIGNAL(currentChanged(int)), this, SLOT(updateTabs(int)));
|
connect(ui.tabWidget, SIGNAL(currentChanged(int)), this, SLOT(updateTabs(int)));
|
||||||
connect(ui.actionAbout_Qt, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
|
connect(ui.actionAbout_Qt, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
|
||||||
connect(ui.action_About, SIGNAL(triggered()), this, SLOT(about()));
|
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.action_Configure, SIGNAL(triggered()), this, SLOT(configDialog()));
|
||||||
connect(ui.buttonChangeDevice, SIGNAL(clicked()), this, SLOT(configDialog()));
|
connect(ui.buttonChangeDevice, SIGNAL(clicked()), this, SLOT(configDialog()));
|
||||||
connect(ui.buttonRockbox, SIGNAL(clicked()), this, SLOT(installBtn()));
|
connect(ui.buttonRockbox, SIGNAL(clicked()), this, SLOT(installBtn()));
|
||||||
|
|
@ -205,7 +206,7 @@ void RbUtilQt::about()
|
||||||
QString rline = r.readAll();
|
QString rline = r.readAll();
|
||||||
about.browserCredits->insertPlainText(rline);
|
about.browserCredits->insertPlainText(rline);
|
||||||
about.browserCredits->moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor);
|
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.labelTitle->setText(title);
|
||||||
about.labelHomepage->setText("<a href='http://www.rockbox.org'>http://www.rockbox.org</a>");
|
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()
|
void RbUtilQt::configDialog()
|
||||||
{
|
{
|
||||||
Config *cw = new Config(this);
|
Config *cw = new Config(this);
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ class RbUtilQt : public QMainWindow
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void about(void);
|
void about(void);
|
||||||
|
void help(void);
|
||||||
void configDialog(void);
|
void configDialog(void);
|
||||||
void updateDevice(void);
|
void updateDevice(void);
|
||||||
void updateSettings(void);
|
void updateSettings(void);
|
||||||
|
|
|
||||||
|
|
@ -819,6 +819,8 @@ p, li { white-space: pre-wrap; }
|
||||||
</property>
|
</property>
|
||||||
<addaction name="action_About" />
|
<addaction name="action_About" />
|
||||||
<addaction name="actionAbout_Qt" />
|
<addaction name="actionAbout_Qt" />
|
||||||
|
<addaction name="separator" />
|
||||||
|
<addaction name="action_Help" />
|
||||||
</widget>
|
</widget>
|
||||||
<addaction name="menu_File" />
|
<addaction name="menu_File" />
|
||||||
<addaction name="menuAbout" />
|
<addaction name="menuAbout" />
|
||||||
|
|
@ -857,6 +859,11 @@ p, li { white-space: pre-wrap; }
|
||||||
<string>About &Qt</string>
|
<string>About &Qt</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="action_Help" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>&Help</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>tabWidget</tabstop>
|
<tabstop>tabWidget</tabstop>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue