summaryrefslogtreecommitdiffstats
path: root/examples/sysinfo/dialog.cpp
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2010-12-09 09:48:46 +1000
committerLorn Potter <lorn.potter@nokia.com>2010-12-09 09:48:46 +1000
commitbae8955aa04b363aaff08a67021bf967c13e5f41 (patch)
tree14ec0a91badbbd4f1e710924151d1f9bec5f56b7 /examples/sysinfo/dialog.cpp
parente7ea70f372aee4d162b42caee07263da3b8024f8 (diff)
hal is unrelyable for getting uuid.
add uuid to example.
Diffstat (limited to 'examples/sysinfo/dialog.cpp')
-rw-r--r--examples/sysinfo/dialog.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/sysinfo/dialog.cpp b/examples/sysinfo/dialog.cpp
index 56b15f1f18..c022a6b78e 100644
--- a/examples/sysinfo/dialog.cpp
+++ b/examples/sysinfo/dialog.cpp
@@ -263,7 +263,6 @@ void Dialog::updateStorage()
if(volType == QSystemStorageInfo::InternalDrive) {
type = "Internal";
}
-
if(volType == QSystemStorageInfo::RemovableDrive) {
type = "Removable";
}
@@ -273,11 +272,18 @@ void Dialog::updateStorage()
if(volType == QSystemStorageInfo::RemoteDrive) {
type = "Network";
}
+ if(volType == QSystemStorageInfo::InternalFlashDrive) {
+ type = "Flash";
+ }
+ if(volType == QSystemStorageInfo::RamDrive) {
+ type = "Ram";
+ }
QStringList items;
items << volName;
items << type;
items << QString::number(sti->totalDiskSpace(volName));
items << QString::number(sti->availableDiskSpace(volName));
+ items << sti->uriForDrive(volName);
QTreeWidgetItem *item = new QTreeWidgetItem(items);
storageTreeWidget->addTopLevelItem(item);
}