[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/solid/solid/backends/hal
From: Kevin Ottens <ervin () kde ! org>
Date: 2007-10-24 21:11:58
Message-ID: 1193260318.873561.22969.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 729008 by ervin:
Some more fine tuning for device icons. It'll be good enough for now.
M +9 -2 haldevice.cpp
--- trunk/KDE/kdelibs/solid/solid/backends/hal/haldevice.cpp #729007:729008
@@ -139,10 +139,14 @@
} else if (category=="storage") {
- if (property("storage.hotpluggable").toBool()) {
+ if (property("storage.drive_type").toString()=="floppy") {
+ return "media-floppy";
+ } else if (property("storage.drive_type").toString()=="cdrom") {
+ return "drive-optical";
+ } else if (property("storage.hotpluggable").toBool()) {
if (property("storage.bus").toString()=="usb") {
if (property("storage.no_partitions_hint").toBool()
- || property("storage.removable.media_size").toLongLong()<1000000000) {
+ || property("storage.removable.media_size").toLongLong()<4000000000) {
return "drive-removable-media-usb-pendrive";
} else {
return "drive-removable-media-usb";
@@ -190,6 +194,9 @@
return "drive-harddisk";
}
+ } else if (category=="camera") {
+ return "camera-photo";
+
} else if (category=="input") {
QStringList capabilities = property("info.capabilities").toStringList();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic