-rw-r--r-- | korganizer/koagendaview.cpp | 5 | ||||
-rw-r--r-- | korganizer/koeventviewer.h | 8 |
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 @@ -1071,4 +1071,8 @@ void KOAgendaView::fillAgenda() if ( globalFlagBlockAgenda == 1 ) return; + static bool onlyOne = false; + if ( onlyOne ) + return; + onlyOne = true; //if ( globalFlagBlockAgenda == 2 ) //globalFlagBlockAgenda = 0; @@ -1258,4 +1262,5 @@ void KOAgendaView::fillAgenda() 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 @@ -49,8 +49,9 @@ 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 ); @@ -66,5 +67,4 @@ class KOPrintPrefs : public QDialog connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); - resize( 200, 200 ); } |