]> cloud.milkyroute.net Git - dolphin.git/commitdiff
adjust code to use Nuno's new version control icons
authorPeter Penz <peter.penz19@gmail.com>
Tue, 10 Nov 2009 21:43:18 +0000 (21:43 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 10 Nov 2009 21:43:18 +0000 (21:43 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1047280

src/dolphinfileitemdelegate.cpp

index 5060dd0d7786a971a3bdbe1dda95c9c3d9371fef..7a6ef118e3ca3130b825167a6927529e1560d8e5 100644 (file)
@@ -122,19 +122,18 @@ QPixmap DolphinFileItemDelegate::emblemForState(KVersionControlPlugin::VersionSt
         } else if (iconHeight >= KIconLoader::SizeMedium) {
             emblemHeight = KIconLoader::SizeSmall;
         } else {
-            // TODO: it depends on the final icons whether a smaller size works
-            emblemHeight = KIconLoader::SizeSmall /* / 2 */;
+            emblemHeight = KIconLoader::SizeSmall / 2;
         }
 
         const QSize emblemSize(emblemHeight, emblemHeight);
         for (int i = 0; i <= KVersionControlPlugin::ConflictingVersion; ++i) {
             QString iconName;
             switch (state) {
-            case KVersionControlPlugin::NormalVersion:          iconName = "dialog-ok-apply"; break;
-            case KVersionControlPlugin::UpdateRequiredVersion:  iconName = "rating"; break;
-            case KVersionControlPlugin::LocallyModifiedVersion: iconName = "emblem-important"; break;
-            case KVersionControlPlugin::AddedVersion:           iconName = "list-add"; break;
-            case KVersionControlPlugin::ConflictingVersion:     iconName = "application-exit"; break;
+            case KVersionControlPlugin::NormalVersion:          iconName = "vcs-normal"; break;
+            case KVersionControlPlugin::UpdateRequiredVersion:  iconName = "vcs-update-required"; break;
+            case KVersionControlPlugin::LocallyModifiedVersion: iconName = "vcs-locally-modified"; break;
+            case KVersionControlPlugin::AddedVersion:           iconName = "vcs-added"; break;
+            case KVersionControlPlugin::ConflictingVersion:     iconName = "vcs-conflicting"; break;
             default: Q_ASSERT(false); break;
             }