summaryrefslogtreecommitdiffabout
path: root/korganizer/kowhatsnextview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/kowhatsnextview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kowhatsnextview.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp
index 66ff75d..53fe7d0 100644
--- a/korganizer/kowhatsnextview.cpp
+++ b/korganizer/kowhatsnextview.cpp
@@ -40,8 +40,9 @@
#endif
#include "koglobals.h"
#include "koprefs.h"
#include "koeventviewerdialog.h"
+#include "koeventviewer.h"
#include <qstylesheet.h>
#include "kowhatsnextview.h"
using namespace KOrg;
@@ -60,8 +61,13 @@ void WhatsNextTextBrowser::setSource(const QString& n)
}
void WhatsNextTextBrowser::printMe()
{
#ifdef DESKTOP_VERSION
+ KOPrintPrefs pp ( this );
+ if (!pp.exec() )
+ return;
+ int scaleval = pp.printMode() ;
+
QPrinter printer;
if (!printer.setup() )
return;
QPainter p;
@@ -77,9 +83,13 @@ void WhatsNextTextBrowser::printMe()
scale = dx;
else
scale = dy;
p.translate( m.width()/10,0 );
+ qDebug("Scale: %f ", scale );
+ if ( scaleval == 2 || scaleval == 1 && scale < 1.0 ) {
+ qDebug("SCALE ");
p.scale( scale, scale );
+ }
drawContents ( &p, 0,0, contentsWidth (), contentsHeight () );
p.end();
#endif
}