summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/gui/selectiveinstallwidget.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-21 19:51:09 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-22 14:43:01 +0100
commit0d2257d1f79e6c863e77dd93d8abae7d627062ad (patch)
tree811c1aabaf47bcd1efa85343709f568bbc502136 /rbutil/rbutilqt/gui/selectiveinstallwidget.h
parentc2dacf6736dfcde92a4ed947f06fd85c6b2087d4 (diff)
downloadrockbox-0d2257d1f79e6c863e77dd93d8abae7d627062ad.tar.gz
rockbox-0d2257d1f79e6c863e77dd93d8abae7d627062ad.tar.bz2
rockbox-0d2257d1f79e6c863e77dd93d8abae7d627062ad.zip
rbutil: Replace stringly types build type handling with enum.
Avoid having to repeat the same strings for lookup again and again and use an enum instead, which is also less error prone. Change-Id: I6ee8393948dbce97cb53850a6d8bdc4de12b4167
Diffstat (limited to 'rbutil/rbutilqt/gui/selectiveinstallwidget.h')
-rw-r--r--rbutil/rbutilqt/gui/selectiveinstallwidget.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/gui/selectiveinstallwidget.h b/rbutil/rbutilqt/gui/selectiveinstallwidget.h
index ac07e24ab8..38cce78a46 100644
--- a/rbutil/rbutilqt/gui/selectiveinstallwidget.h
+++ b/rbutil/rbutilqt/gui/selectiveinstallwidget.h
@@ -24,6 +24,7 @@
#include "progressloggergui.h"
#include "zipinstaller.h"
#include "themesinstallwindow.h"
+#include "systeminfo.h"
class SelectiveInstallWidget : public QWidget
{
@@ -61,9 +62,9 @@ class SelectiveInstallWidget : public QWidget
ProgressLoggerGui *m_logger;
int m_installStage;
ZipInstaller *m_zipinstaller;
- QMap<QString, QString> m_versions;
+ QMap<SystemInfo::BuildType, QString> m_versions;
ThemesInstallWindow *m_themesinstaller;
- QString m_buildtype;
+ SystemInfo::BuildType m_buildtype;
};
#endif