forked from len0rd/rockbox
Implement a first, simple changelog dialog.
When Rockbox Utility is started for the first time, a new version is started or the user selected to do so on startup a changelog window is shown. Change-Id: Ic223e092a09d31ccbbfcd9b973355225cac27632
This commit is contained in:
parent
1977281bb3
commit
8df12c63b8
11 changed files with 215 additions and 1 deletions
|
|
@ -42,6 +42,7 @@
|
|||
#include "infowidget.h"
|
||||
#include "selectiveinstallwidget.h"
|
||||
#include "backupdialog.h"
|
||||
#include "changelog.h"
|
||||
|
||||
#include "progressloggerinterface.h"
|
||||
|
||||
|
|
@ -166,6 +167,7 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent)
|
|||
connect(ui.actionUninstall_Rockbox, SIGNAL(triggered()), this, SLOT(uninstall()));
|
||||
connect(ui.action_System_Info, SIGNAL(triggered()), this, SLOT(sysinfo()));
|
||||
connect(ui.action_Trace, SIGNAL(triggered()), this, SLOT(trace()));
|
||||
connect(ui.actionShow_Changelog, SIGNAL(triggered()), this, SLOT(changelog()));
|
||||
|
||||
#if !defined(STATIC)
|
||||
ui.actionInstall_Rockbox_Utility_on_player->setEnabled(false);
|
||||
|
|
@ -204,6 +206,14 @@ void RbUtilQt::sysinfo(void)
|
|||
sysinfo.exec();
|
||||
}
|
||||
|
||||
void RbUtilQt::changelog(void)
|
||||
{
|
||||
|
||||
Changelog cl(this);
|
||||
cl.exec();
|
||||
}
|
||||
|
||||
|
||||
void RbUtilQt::updateTabs(int count)
|
||||
{
|
||||
if(count == ui.tabWidget->indexOf(info->parentWidget()))
|
||||
|
|
@ -317,6 +327,10 @@ void RbUtilQt::updateSettings()
|
|||
HttpGet::setGlobalCache(c.isEmpty() ? QDir::tempPath() : c);
|
||||
HttpGet::setGlobalProxy(proxy());
|
||||
|
||||
if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION
|
||||
|| RbSettings::value(RbSettings::ShowChangelog).toBool()) {
|
||||
changelog();
|
||||
}
|
||||
if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION) {
|
||||
QApplication::processEvents();
|
||||
QMessageBox::information(this, tr("New installation"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue