diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-09-20 23:03:56 +0200 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-09-30 23:42:21 +0200 |
commit | 8df12c63b846edcec4fb7020a8409f5aefa089f1 (patch) | |
tree | 1334a10b59b3332113247cce5531deee19ba7da6 /rbutil/rbutilqt/rbutilqt.cpp | |
parent | 1977281bb3de54db1be7527bdea3ab9089f15011 (diff) | |
download | rockbox-8df12c63b846edcec4fb7020a8409f5aefa089f1.tar.gz 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.cpp | 14 |
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 @@ | |||
42 | #include "infowidget.h" | 42 | #include "infowidget.h" |
43 | #include "selectiveinstallwidget.h" | 43 | #include "selectiveinstallwidget.h" |
44 | #include "backupdialog.h" | 44 | #include "backupdialog.h" |
45 | #include "changelog.h" | ||
45 | 46 | ||
46 | #include "progressloggerinterface.h" | 47 | #include "progressloggerinterface.h" |
47 | 48 | ||
@@ -166,6 +167,7 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent) | |||
166 | connect(ui.actionUninstall_Rockbox, SIGNAL(triggered()), this, SLOT(uninstall())); | 167 | connect(ui.actionUninstall_Rockbox, SIGNAL(triggered()), this, SLOT(uninstall())); |
167 | connect(ui.action_System_Info, SIGNAL(triggered()), this, SLOT(sysinfo())); | 168 | connect(ui.action_System_Info, SIGNAL(triggered()), this, SLOT(sysinfo())); |
168 | connect(ui.action_Trace, SIGNAL(triggered()), this, SLOT(trace())); | 169 | connect(ui.action_Trace, SIGNAL(triggered()), this, SLOT(trace())); |
170 | connect(ui.actionShow_Changelog, SIGNAL(triggered()), this, SLOT(changelog())); | ||
169 | 171 | ||
170 | #if !defined(STATIC) | 172 | #if !defined(STATIC) |
171 | ui.actionInstall_Rockbox_Utility_on_player->setEnabled(false); | 173 | ui.actionInstall_Rockbox_Utility_on_player->setEnabled(false); |
@@ -204,6 +206,14 @@ void RbUtilQt::sysinfo(void) | |||
204 | sysinfo.exec(); | 206 | sysinfo.exec(); |
205 | } | 207 | } |
206 | 208 | ||
209 | void RbUtilQt::changelog(void) | ||
210 | { | ||
211 | |||
212 | Changelog cl(this); | ||
213 | cl.exec(); | ||
214 | } | ||
215 | |||
216 | |||
207 | void RbUtilQt::updateTabs(int count) | 217 | void RbUtilQt::updateTabs(int count) |
208 | { | 218 | { |
209 | if(count == ui.tabWidget->indexOf(info->parentWidget())) | 219 | if(count == ui.tabWidget->indexOf(info->parentWidget())) |
@@ -317,6 +327,10 @@ void RbUtilQt::updateSettings() | |||
317 | HttpGet::setGlobalCache(c.isEmpty() ? QDir::tempPath() : c); | 327 | HttpGet::setGlobalCache(c.isEmpty() ? QDir::tempPath() : c); |
318 | HttpGet::setGlobalProxy(proxy()); | 328 | HttpGet::setGlobalProxy(proxy()); |
319 | 329 | ||
330 | if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION | ||
331 | || RbSettings::value(RbSettings::ShowChangelog).toBool()) { | ||
332 | changelog(); | ||
333 | } | ||
320 | if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION) { | 334 | if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION) { |
321 | QApplication::processEvents(); | 335 | QApplication::processEvents(); |
322 | QMessageBox::information(this, tr("New installation"), | 336 | QMessageBox::information(this, tr("New installation"), |