[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim-runtime] resources/kolabproxy: Make kolab resource use the same tasks icon as korganizer's v
From:       Sergio Martins <iamsergio () gmail ! com>
Date:       2013-06-13 13:45:35
Message-ID: 20130613134535.0D412A605A () git ! kde ! org
[Download RAW message or body]

Git commit ffbcc443de672f3b7961499de0fdc59be65e89a2 by Sergio Martins.
Committed on 13/06/2013 at 15:40.
Pushed by smartins into branch 'master'.

Make kolab resource use the same tasks icon as korganizer's views.

The icons are almost identical, this is just a name change.

Month/Agenda view items show the collection's icon, and also the tasks
icon in case of to-dos. When korg sees that both icons are the same
it will only display one.

Because kolab was using an icon with a different name, korg was showing
two identical tasks icons on each item.

M  +1    -1    resources/kolabproxy/setupdefaultfoldersjob.cpp
M  +1    -1    resources/kolabproxy/taskshandler.cpp

http://commits.kde.org/kdepim-runtime/ffbcc443de672f3b7961499de0fdc59be65e89a2

diff --git a/resources/kolabproxy/setupdefaultfoldersjob.cpp \
b/resources/kolabproxy/setupdefaultfoldersjob.cpp index 1da170a..2db7779 100644
--- a/resources/kolabproxy/setupdefaultfoldersjob.cpp
+++ b/resources/kolabproxy/setupdefaultfoldersjob.cpp
@@ -120,7 +120,7 @@ void SetupDefaultFoldersJob::collectionFetchResult( KJob *job )
     } else if ( i == KolabV2::Event ) {
       iconName = QString::fromLatin1( "view-calendar" );
     } else if ( i == KolabV2::Task ) {
-      iconName = QString::fromLatin1( "view-pim-tasks" );
+      iconName = QString::fromLatin1( "view-calendar-tasks" );
     } else if ( i == KolabV2::Journal ) {
       iconName = QString::fromLatin1( "view-pim-journal" );
     } else if ( i == KolabV2::Note ) {
diff --git a/resources/kolabproxy/taskshandler.cpp \
b/resources/kolabproxy/taskshandler.cpp index b1b3fdd..2b24284 100644
--- a/resources/kolabproxy/taskshandler.cpp
+++ b/resources/kolabproxy/taskshandler.cpp
@@ -46,5 +46,5 @@ QStringList TasksHandler::contentMimeTypes()
 
 QString TasksHandler::iconName() const
 {
-  return QString::fromLatin1( "view-pim-tasks" );
+  return QString::fromLatin1( "view-calendar-tasks" );
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic