┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-10-18 14:09:55 +0000
committerPeter Penz <[email protected]>2010-10-18 14:09:55 +0000
commit0d1d0d5781a3cfb4debc671b9728c37c511366f0 (patch)
treeae90d149c476064f4d3cc248e5d9154f50db91da
parenta85590ad078496f0ef9d86af91e7500f767e0988 (diff)
Provide icon for LocallyModifiedUnstaged versions of a file
svn path=/trunk/KDE/kdebase/apps/; revision=1187170
-rw-r--r--src/views/dolphinfileitemdelegate.cpp32
1 files changed, 25 insertions, 7 deletions
diff --git a/src/views/dolphinfileitemdelegate.cpp b/src/views/dolphinfileitemdelegate.cpp
index 609a12b98..64a19582a 100644
--- a/src/views/dolphinfileitemdelegate.cpp
+++ b/src/views/dolphinfileitemdelegate.cpp
@@ -163,14 +163,32 @@ QPixmap DolphinFileItemDelegate::emblemForState(KVersionControlPlugin::VersionSt
for (int i = KVersionControlPlugin::NormalVersion; i <= KVersionControlPlugin::ConflictingVersion; ++i) {
QString iconName;
switch (i) {
- 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::RemovedVersion: iconName = "vcs-removed"; break;
- case KVersionControlPlugin::ConflictingVersion: iconName = "vcs-conflicting"; 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::LocallyModifiedUnstagedVersion:
+ iconName = "vcs-locally-modified-unstaged";
+ break;
+ case KVersionControlPlugin::AddedVersion:
+ iconName = "vcs-added";
+ break;
+ case KVersionControlPlugin::RemovedVersion:
+ iconName = "vcs-removed";
+ break;
+ case KVersionControlPlugin::ConflictingVersion:
+ iconName = "vcs-conflicting";
+ break;
case KVersionControlPlugin::UnversionedVersion:
- default: Q_ASSERT(false); break;
+ break;
+ default:
+ Q_ASSERT(false);
+ break;
}
m_cachedEmblems[i] = KIcon(iconName).pixmap(emblemSize);