[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/korganizer/printing
From: Allen Winter <winter () kde ! org>
Date: 2010-01-21 19:59:55
Message-ID: 1264103995.445031.13654.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1078222 by winterz:
cleaning coding style
M +2 -2 calprintdefaultplugins.cpp
M +2 -2 calprinter.h
M +11 -8 calprintpluginbase.cpp
--- trunk/KDE/kdepim/korganizer/printing/calprintdefaultplugins.cpp #1078221:1078222
@@ -779,11 +779,11 @@
title = i18nc( "date from-\nto", "%1 -\n%2", line1, line2 );
}
drawHeader( p, title, mFromDate, QDate(), headerBox );
- if (mDayPrintType == Filofax) {
+ if ( mDayPrintType == Filofax ) {
drawDays( p, mFromDate, mToDate, daysBox, mSingleLineLimit,
mShowNoteLines, mIncludeDescription,
mExcludeConfidential, mExcludePrivate );
- } else if (mDayPrintType == SingleTimetable) {
+ } else if ( mDayPrintType == SingleTimetable ) {
drawTimeTable( p, mFromDate, mToDate, mStartTime, mEndTime, daysBox,
mIncludeDescription, mExcludeTime, mExcludeConfidential,
mExcludePrivate );
--- trunk/KDE/kdepim/korganizer/printing/calprinter.h #1078221:1078222
@@ -22,8 +22,8 @@
with any edition of Qt, and distribute the resulting executable,
without including the source code for Qt in the source distribution.
*/
-#ifndef _CALPRINTER_H
-#define _CALPRINTER_H
+#ifndef CALPRINTER_H
+#define CALPRINTER_H
#include "korganizer/korganizer_export.h"
#include "korganizer/printplugin.h"
--- trunk/KDE/kdepim/korganizer/printing/calprintpluginbase.cpp #1078221:1078222
@@ -424,8 +424,9 @@
{
p.save();
p.rotate( -90 );
- QRect rotatedBox( -box.top()-box.height(), box.left(), box.height(), box.width() \
);
- showEventBox( p, rotatedBox, Incidence::Ptr(), str, Qt::AlignLeft | \
Qt::AlignVCenter | Qt::SingleLine ); + QRect rotatedBox( -box.top() - box.height(), \
box.left(), box.height(), box.width() ); + showEventBox( p, rotatedBox, \
Incidence::Ptr(), str, + Qt::AlignLeft | Qt::AlignVCenter | \
Qt::SingleLine );
p.restore();
}
@@ -1496,7 +1497,8 @@
if ( (*mit).start.date() == (*mit).end.date() ) {
// Show also single-day events as time line boxes
if ( subDailyFlags & TimeBoxes ) {
- timeboxItems.append( new PrintCellItem( Akonadi::event( (*mit).event ), \
(*mit).start, (*mit).end ) ); + timeboxItems.append(
+ new PrintCellItem( Akonadi::event( (*mit).event ), (*mit).start, \
(*mit).end ) ); }
// Show as text in the box
if ( subDailyFlags & Text ) {
@@ -1512,7 +1514,8 @@
if ( thisend > endofmonth ) {
thisend = endofmonth;
}
- timeboxItems.append( new PrintCellItem( Akonadi::event( (*mit).event ), \
thisstart, thisend ) ); + timeboxItems.append(
+ new PrintCellItem( Akonadi::event( (*mit).event ), thisstart, thisend ) );
}
}
@@ -1826,8 +1829,8 @@
#else
bool subtodoOk = false;
if ( subtodo ) {
- foreach(const Akonadi::Item &item, todoList) {
- if( item.payload<Todo::Ptr>().get() == subtodo ) {
+ foreach ( const Akonadi::Item &item, todoList ) {
+ if ( item.payload<Todo::Ptr>().get() == subtodo ) {
subtodoOk = true;
break;
}
@@ -1865,9 +1868,9 @@
Item::List sl = mCalendar->sortTodos( &t, sortField, sortDir );
#else
Akonadi::Item::List tl;
- foreach(Todo* todo, t) {
+ foreach ( Todo *todo, t ) {
Akonadi::Item todoitem;
- todoitem.setPayload( Todo::Ptr(todo->clone()) );
+ todoitem.setPayload( Todo::Ptr( todo->clone() ) );
tl.append( todoitem );
}
Item::List sl = mCalendar->sortTodos( tl, sortField, sortDir );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic