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, | |||
59 | mTopLayout = new QVBoxLayout(parWid); | 59 | mTopLayout = new QVBoxLayout(parWid); |
60 | QHBox * vb = new QHBox ( parWid ); | 60 | QHBox * vb = new QHBox ( parWid ); |
61 | QPushButton * newJournal = new QPushButton( vb ); | 61 | QPushButton * newJournal = new QPushButton( vb ); |
62 | QIconSet icon; | 62 | QPixmap icon; |
63 | if ( QApplication::desktop()->width() < 321 ) | 63 | if ( QApplication::desktop()->width() < 321 ) |
64 | icon = SmallIcon("ko16old"); | 64 | icon = SmallIcon("ko16old"); |
65 | else | 65 | else |
66 | icon = SmallIcon("ko24old"); | 66 | icon = SmallIcon("ko24old"); |
67 | newJournal->setIconSet (icon ) ; | 67 | newJournal->setPixmap (icon ) ; |
68 | int size = newJournal->sizeHint().height(); | 68 | int size = newJournal->sizeHint().height(); |
69 | newJournal->setFixedSize( size, size ); | 69 | newJournal->setFixedSize( size, size ); |
70 | mDateLabel = new QLabel ( vb ); | 70 | mDateLabel = new QLabel ( vb ); |
@@ -138,6 +138,7 @@ void KOJournalView::clearList() | |||
138 | } | 138 | } |
139 | void KOJournalView::newJournal() | 139 | void KOJournalView::newJournal() |
140 | { | 140 | { |
141 | flushView(); | ||
141 | Journal* mJournal = new Journal; | 142 | Journal* mJournal = new Journal; |
142 | mJournal->setDtStart(QDateTime(mDate,QTime(0,0,0))); | 143 | mJournal->setDtStart(QDateTime(mDate,QTime(0,0,0))); |
143 | mCalendar->addJournal(mJournal); | 144 | mCalendar->addJournal(mJournal); |
@@ -146,6 +147,7 @@ void KOJournalView::newJournal() | |||
146 | 147 | ||
147 | void KOJournalView::showOnly ( Journal* j ) | 148 | void KOJournalView::showOnly ( Journal* j ) |
148 | { | 149 | { |
150 | flushView(); | ||
149 | if ( j == 0 ) { | 151 | if ( j == 0 ) { |
150 | showDates( mDate, QDate() ); | 152 | showDates( mDate, QDate() ); |
151 | return; | 153 | return; |