diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-03-01 22:45:17 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-03-01 22:45:17 +0000 |
commit | 8c8703038be3f9bbb80742816045e18d3aa8c465 (patch) | |
tree | 2af356a2b0d77016c71aeecfcc700e2e8aa7f844 /rbutil/rbutilqt/base/systeminfo.cpp | |
parent | f67e3559c62ba21d6085793a2bb5513050590ef7 (diff) | |
download | rockbox-8c8703038be3f9bbb80742816045e18d3aa8c465.tar.gz rockbox-8c8703038be3f9bbb80742816045e18d3aa8c465.zip |
Refactor device tree setup a bit.
- reorder value retrieval (display names etc) to cut down the number of
necessary accesses. While this is not critical it cuts down the noise
generated in the trace noticably.
- match the old target by its internal name instead of the display name.
- remove two access functions in SystemInfo that are not really needed anymore.
Accessing the values via platformValue() is much more logical and in line with
the rest of the value accesses.
- try to scroll to the selected item in the device list after setup and
detection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24988 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/systeminfo.cpp')
-rw-r--r-- | rbutil/rbutilqt/base/systeminfo.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/rbutil/rbutilqt/base/systeminfo.cpp b/rbutil/rbutilqt/base/systeminfo.cpp index a941f43078..72a62ac2fb 100644 --- a/rbutil/rbutilqt/base/systeminfo.cpp +++ b/rbutil/rbutilqt/base/systeminfo.cpp | |||
@@ -156,18 +156,6 @@ QStringList SystemInfo::languages() | |||
156 | } | 156 | } |
157 | 157 | ||
158 | 158 | ||
159 | QString SystemInfo::name(QString platform) | ||
160 | { | ||
161 | ensureSystemInfoExists(); | ||
162 | return systemInfos->value(platform + "/name").toString(); | ||
163 | } | ||
164 | |||
165 | QString SystemInfo::brand(QString platform) | ||
166 | { | ||
167 | ensureSystemInfoExists(); | ||
168 | return systemInfos->value(platform + "/brand").toString(); | ||
169 | } | ||
170 | |||
171 | QMap<int, QString> SystemInfo::usbIdMap(enum MapType type) | 159 | QMap<int, QString> SystemInfo::usbIdMap(enum MapType type) |
172 | { | 160 | { |
173 | ensureSystemInfoExists(); | 161 | ensureSystemInfoExists(); |