summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-09-20 23:03:56 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-09-30 23:42:21 +0200
commit8df12c63b846edcec4fb7020a8409f5aefa089f1 (patch)
tree1334a10b59b3332113247cce5531deee19ba7da6 /rbutil/rbutilqt/rbutilqt.cpp
parent1977281bb3de54db1be7527bdea3ab9089f15011 (diff)
downloadrockbox-8df12c63b846edcec4fb7020a8409f5aefa089f1.tar.gz
rockbox-8df12c63b846edcec4fb7020a8409f5aefa089f1.tar.bz2
rockbox-8df12c63b846edcec4fb7020a8409f5aefa089f1.zip
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
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 6703b08791..f83020050a 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -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"),