~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to korganizer/printing/calprintpluginbase.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Kolberg
  • Date: 2011-09-03 13:01:43 UTC
  • mfrom: (0.2.14)
  • Revision ID: package-import@ubuntu.com-20110903130143-5mmx3goibh8sgt9t
Tags: 4:4.7.1-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1003
1003
        str += event->description();
1004
1004
      }
1005
1005
    }
 
1006
    QFont oldFont( p.font() );
 
1007
    if ( eventBox.height() < 24 ) {
 
1008
      if ( eventBox.height() < 12 ) {
 
1009
        if ( eventBox.height() < 8 ) {
 
1010
          p.setFont( QFont( "sans-serif", 4 ) );
 
1011
        } else {
 
1012
          p.setFont( QFont( "sans-serif", 6 ) );
 
1013
        }
 
1014
      } else {
 
1015
        p.setFont( QFont( "sans-serif", 8 ) );
 
1016
      }
 
1017
    } else {
 
1018
       p.setFont( QFont( "sans-serif", 10 ) );
 
1019
    }
1006
1020
    showEventBox( p, EVENT_BORDER_WIDTH, eventBox, event, str );
 
1021
    p.setFont( oldFont );
1007
1022
  }
1008
1023
}
1009
1024
 
1200
1215
    summaryBound.setHeight(textBoxHeight);
1201
1216
    QRect lineRect( dayBox.x() + borderWidth, dayBox.y() + textY,
1202
1217
                    dayBox.width() - ( borderWidth * 2 ), textBoxHeight );
1203
 
    drawBox( p, -1, lineRect );
 
1218
    drawBox( p, 1, lineRect );
1204
1219
    if ( !time.isEmpty() ) {
1205
1220
      p.drawText( timeBound, flags, time );
1206
1221
    }
1238
1253
    p.save();
1239
1254
    QRect backBox( timeBound.x(), timeBound.y(),
1240
1255
                   dayBox.width() - ( borderWidth * 2 ), clipBox.height() );
1241
 
    drawBox( p, -1, backBox );
 
1256
    drawBox( p, 1, backBox );
1242
1257
 
1243
1258
    if ( !time.isEmpty() ) {
1244
1259
      if ( timeBound.bottom() > dayBox.bottom() ) {