mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -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.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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue