Diffstat (limited to 'korganizer/kojournalview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/kojournalview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/korganizer/kojournalview.cpp b/korganizer/kojournalview.cpp index ff87ef4..cb9a2c0 100644 --- a/korganizer/kojournalview.cpp +++ b/korganizer/kojournalview.cpp @@ -59,12 +59,12 @@ KOJournalView::KOJournalView(Calendar *calendar, QWidget *parent, mTopLayout = new QVBoxLayout(parWid); QHBox * vb = new QHBox ( parWid ); QPushButton * newJournal = new QPushButton( vb ); - QIconSet icon; + QPixmap icon; if ( QApplication::desktop()->width() < 321 ) icon = SmallIcon("ko16old"); else icon = SmallIcon("ko24old"); - newJournal->setIconSet (icon ) ; + newJournal->setPixmap (icon ) ; int size = newJournal->sizeHint().height(); newJournal->setFixedSize( size, size ); mDateLabel = new QLabel ( vb ); @@ -138,6 +138,7 @@ void KOJournalView::clearList() } void KOJournalView::newJournal() { + flushView(); Journal* mJournal = new Journal; mJournal->setDtStart(QDateTime(mDate,QTime(0,0,0))); mCalendar->addJournal(mJournal); @@ -146,6 +147,7 @@ void KOJournalView::newJournal() void KOJournalView::showOnly ( Journal* j ) { + flushView(); if ( j == 0 ) { showDates( mDate, QDate() ); return; |