[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/korganizer/views/todoview (silent)
From: Allen Winter <winter () kde ! org>
Date: 2008-04-30 20:17:39
Message-ID: 1209586659.446849.12588.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 802835 by winterz:
a tiny bit of i18n message context
SVN_SILENT:
M +13 -5 kotodomodel.cpp
--- trunk/KDE/kdepim/korganizer/views/todoview/kotodomodel.cpp #802834:802835
@@ -250,7 +250,9 @@
void KOTodoModel::addTodo( const QString &summary )
{
- if ( !mChanger ) return;
+ if ( !mChanger ) {
+ return;
+ }
if ( !summary.trimmed().isEmpty() ) {
Todo *todo = new Todo();
@@ -266,7 +268,9 @@
void KOTodoModel::copyTodo( const QModelIndex &index, const QDate &date )
{
- if ( !mChanger || !index.isValid() ) return;
+ if ( !mChanger || !index.isValid() ) {
+ return;
+ }
TodoTreeNode *node = static_cast<TodoTreeNode *>( index.internalPointer() );
Todo *todo = node->mTodo->clone();
@@ -523,7 +527,9 @@
case SummaryColumn:
return QVariant( todo->summary() );
case RecurColumn:
- return QVariant( todo->recurs() ? i18n("Yes") : i18n("No") );
+ return QVariant( todo->recurs() ?
+ i18nc( "yes, recurring to-do", "Yes" ) :
+ i18nc( "no, not a recurring to-do", "No" ) );
case PriorityColumn:
if ( todo->priority() == 0 ) {
return QVariant( QString::fromAscii( "--" ) );
@@ -577,9 +583,11 @@
// background colour for todos due today or overdue todos
if ( role == Qt::BackgroundRole ) {
if ( todo->isOverdue() ) {
- return QVariant( QBrush( \
KOPrefs::instance()->agendaCalendarItemsToDosOverdueBackgroundColor() ) ); + \
return QVariant( + QBrush( \
KOPrefs::instance()->agendaCalendarItemsToDosOverdueBackgroundColor() ) ); } else if \
( todo->dtDue().date() == QDate::currentDate() ) {
- return QVariant( QBrush( \
KOPrefs::instance()->agendaCalendarItemsToDosDueTodayBackgroundColor() ) ); + \
return QVariant( + QBrush( \
KOPrefs::instance()->agendaCalendarItemsToDosDueTodayBackgroundColor() ) ); }
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic