mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Provide icon for LocallyModifiedUnstaged versions of a file
svn path=/trunk/KDE/kdebase/apps/; revision=1187170
This commit is contained in:
parent
a85590ad07
commit
0d1d0d5781
|
@ -163,14 +163,32 @@ QPixmap DolphinFileItemDelegate::emblemForState(KVersionControlPlugin::VersionSt
|
||||||
for (int i = KVersionControlPlugin::NormalVersion; i <= KVersionControlPlugin::ConflictingVersion; ++i) {
|
for (int i = KVersionControlPlugin::NormalVersion; i <= KVersionControlPlugin::ConflictingVersion; ++i) {
|
||||||
QString iconName;
|
QString iconName;
|
||||||
switch (i) {
|
switch (i) {
|
||||||
case KVersionControlPlugin::NormalVersion: iconName = "vcs-normal"; break;
|
case KVersionControlPlugin::NormalVersion:
|
||||||
case KVersionControlPlugin::UpdateRequiredVersion: iconName = "vcs-update-required"; break;
|
iconName = "vcs-normal";
|
||||||
case KVersionControlPlugin::LocallyModifiedVersion: iconName = "vcs-locally-modified"; break;
|
break;
|
||||||
case KVersionControlPlugin::AddedVersion: iconName = "vcs-added"; break;
|
case KVersionControlPlugin::UpdateRequiredVersion:
|
||||||
case KVersionControlPlugin::RemovedVersion: iconName = "vcs-removed"; break;
|
iconName = "vcs-update-required";
|
||||||
case KVersionControlPlugin::ConflictingVersion: iconName = "vcs-conflicting"; break;
|
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:
|
case KVersionControlPlugin::UnversionedVersion:
|
||||||
default: Q_ASSERT(false); break;
|
break;
|
||||||
|
default:
|
||||||
|
Q_ASSERT(false);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_cachedEmblems[i] = KIcon(iconName).pixmap(emblemSize);
|
m_cachedEmblems[i] = KIcon(iconName).pixmap(emblemSize);
|
||||||
|
|
Loading…
Reference in a new issue