[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/nepomuk-kde/tasks
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2010-11-22 19:40:44
Message-ID: 20101122194044.84D2CAC8A0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1199808 by trueg:
The new ResourceModel in kdelibs does not have ResourceCreationDate role
M +1 -8 taskmodel.cpp
--- trunk/playground/base/nepomuk-kde/tasks/taskmodel.cpp #1199807:1199808
@@ -360,11 +360,6 @@
}
else if ( index.column() == 2 ) {
- if ( role == Qt::DisplayRole )
- return ResourceModel::data( index, ResourceModel::ResourceCreationDate );
- }
-
- else if ( index.column() == 3 ) {
if ( role == Qt::DisplayRole ) {
int p = index.data( TaskPriorityNumRole ).toInt();
return( p == -1 ? i18n( "Low" ) : ( p == 1 ? i18n( "High" ) : i18n( "Medium" ) ) );
@@ -390,7 +385,7 @@
int Nepomuk::TaskModel::columnCount( const QModelIndex& ) const
{
- return 4;
+ return 3;
}
@@ -403,8 +398,6 @@
case 1:
return i18n( "Due" );
case 2:
- return i18n( "Creation Date" );
- case 3:
return i18n( "Priority" );
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic