-rw-r--r-- | korganizer/koagendaitem.cpp | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp index 23afe7a..e545ca8 100644 --- a/korganizer/koagendaitem.cpp +++ b/korganizer/koagendaitem.cpp @@ -445,4 +445,7 @@ QPixmap * KOAgendaItem::paintPix() static QPixmap* mPaintPix = 0; - if ( ! mPaintPix ) - mPaintPix = new QPixmap(1,1); + if ( ! mPaintPix ) { + int w = QApplication::desktop()->width(); + int h = QApplication::desktop()->height(); + mPaintPix = new QPixmap(w,h); + } return mPaintPix ; @@ -452,4 +455,7 @@ QPixmap * KOAgendaItem::paintPixAllday() static QPixmap* mPaintPixA = 0; - if ( ! mPaintPixA ) - mPaintPixA = new QPixmap(1,1); + if ( ! mPaintPixA ) { + int w = QApplication::desktop()->width(); + int h = QApplication::desktop()->height()/3; + mPaintPixA = new QPixmap(w,h); + } return mPaintPixA ; @@ -459,4 +465,7 @@ QPixmap * KOAgendaItem::paintPixSel() static QPixmap* mPaintPixSel = 0; - if ( ! mPaintPixSel ) - mPaintPixSel = new QPixmap(1,1); + if ( ! mPaintPixSel ) { + int w = QApplication::desktop()->width(); + int h = QApplication::desktop()->height(); + mPaintPixSel = new QPixmap(w,h); + } return mPaintPixSel ; @@ -527,3 +536,2 @@ void KOAgendaItem::computeText() { - mDisplayedText = mIncidence->summary(); @@ -538,3 +546,3 @@ void KOAgendaItem::computeText() if ( !(mIncidence->doesFloat()) && KOPrefs::instance()->mShowTimeInAgenda) - mDisplayedText += ": " +KGlobal::locale()->formatTime((static_cast<Event*>(mIncidence))->dtStart().time()) + "-" + KGlobal::locale()->formatTime((static_cast<Event*>(mIncidence))->dtEnd().time()) ; + mDisplayedText += ": " +KGlobal::locale()->formatTime((static_cast<Event*>(mIncidence))->dtStart().time()) + " - " + KGlobal::locale()->formatTime((static_cast<Event*>(mIncidence))->dtEnd().time()) ; @@ -555,3 +563,3 @@ void KOAgendaItem::computeText() } - +#ifdef DESKTOP_VERSION QString tipText = mIncidence->summary(); @@ -585,3 +593,3 @@ void KOAgendaItem::computeText() QToolTip::add(this,tipText,toolTipGroup(),""); - +#endif } |