Diffstat (limited to 'korganizer/kowhatsnextview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/kowhatsnextview.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp index 66ff75d..53fe7d0 100644 --- a/korganizer/kowhatsnextview.cpp +++ b/korganizer/kowhatsnextview.cpp @@ -43,2 +43,3 @@ #include "koeventviewerdialog.h" +#include "koeventviewer.h" #include <qstylesheet.h> @@ -63,2 +64,7 @@ void WhatsNextTextBrowser::printMe() #ifdef DESKTOP_VERSION + KOPrintPrefs pp ( this ); + if (!pp.exec() ) + return; + int scaleval = pp.printMode() ; + QPrinter printer; @@ -80,3 +86,7 @@ void WhatsNextTextBrowser::printMe() p.translate( m.width()/10,0 ); - p.scale( scale, scale ); + qDebug("Scale: %f ", scale ); + if ( scaleval == 2 || scaleval == 1 && scale < 1.0 ) { + qDebug("SCALE "); + p.scale( scale, scale ); + } drawContents ( &p, 0,0, contentsWidth (), contentsHeight () ); |