summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-03-28 19:45:15 (UTC)
committer zautrix <zautrix>2005-03-28 19:45:15 (UTC)
commit4034290f894ff7d1b0cf1197078e0ed832566bb7 (patch) (side-by-side diff)
tree21b7d2e2568f11079f705b8312e15146be4309ac /korganizer
parentea070abfcff313cac87dbb4d5c9410784740de21 (diff)
downloadkdepimpi-4034290f894ff7d1b0cf1197078e0ed832566bb7.zip
kdepimpi-4034290f894ff7d1b0cf1197078e0ed832566bb7.tar.gz
kdepimpi-4034290f894ff7d1b0cf1197078e0ed832566bb7.tar.bz2
print fixes
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koagendaview.cpp5
-rw-r--r--korganizer/koeventviewer.h8
2 files changed, 9 insertions, 4 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp
index f452db0..b9909d6 100644
--- a/korganizer/koagendaview.cpp
+++ b/korganizer/koagendaview.cpp
@@ -1070,6 +1070,10 @@ void KOAgendaView::fillAgenda()
return;
if ( globalFlagBlockAgenda == 1 )
return;
+ static bool onlyOne = false;
+ if ( onlyOne )
+ return;
+ onlyOne = true;
//if ( globalFlagBlockAgenda == 2 )
//globalFlagBlockAgenda = 0;
// globalFlagBlockPainting = false;
@@ -1257,6 +1261,7 @@ void KOAgendaView::fillAgenda()
mAllDayAgenda->drawContentsToPainter();
mAgenda->drawContentsToPainter();
repaintAgenda();
+ onlyOne = false;
// mAgenda->finishUpdate();
//mAllDayAgenda->finishUpdate();
diff --git a/korganizer/koeventviewer.h b/korganizer/koeventviewer.h
index 6ecc233..1eeb8d1 100644
--- a/korganizer/koeventviewer.h
+++ b/korganizer/koeventviewer.h
@@ -48,10 +48,11 @@ class KOPrintPrefs : public QDialog
{
setCaption( i18n("KO/Pi Printout") );
QVBoxLayout* lay = new QVBoxLayout( this );
- lay->setSpacing( 3 );
- lay->setMargin( 3 );
- QLabel * lab = new QLabel( i18n("This prints the view as you see it.\n(With the complete content, of course.)\nYou may change the print layout by resizing the view.\nPrint unscaled may print several pages\ndepending on the amount of data.\nPrint scaled down will print all on one page.\nPrint scaled up/down will print all on one page,\nbut will scale up the text to page boundaries,\nif the text is smaller than the page.\nYou can select page geometry setup in the next dialog."), this );
+ lay->setSpacing( 9 );
+ lay->setMargin( 9 );
+ QLabel * lab = new QLabel( i18n("This prints the view as you see it.\n(With the complete content, of course.)\nYou may change the print layout by resizing the view.\nPrint unscaled may print several pages\ndepending on the amount of data.\nPrint scaled down will print all on one page.\nPrint scaled up/down will print all on one page,\nbut will scale up the text to page boundaries,\nif the text is smaller than the page.\nYou can select page geometry setup in the next dialog.\n"), this );
lay->addWidget( lab );
+ lab->setAlignment( AlignCenter );
QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("Printout Mode"), this );
lay->addWidget( format );
format->setExclusive ( true ) ;
@@ -65,7 +66,6 @@ class KOPrintPrefs : public QDialog
lay->addWidget( cancel );
connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) );
connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) );
- resize( 200, 200 );
}
int printMode()