-rw-r--r-- | korganizer/mainwindow.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index e960424..9c2ac82 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -131,6 +131,7 @@ public: | |||
131 | }; | 131 | }; |
132 | 132 | ||
133 | QPixmap* sgListViewCompletedPix[6]; | 133 | QPixmap* sgListViewCompletedPix[6]; |
134 | QPixmap* sgListViewJournalPix; | ||
134 | 135 | ||
135 | 136 | ||
136 | int globalFlagBlockStartup; | 137 | int globalFlagBlockStartup; |
@@ -143,8 +144,8 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) : | |||
143 | sgListViewCompletedPix[2] = &listviewPix40; | 144 | sgListViewCompletedPix[2] = &listviewPix40; |
144 | sgListViewCompletedPix[3] = &listviewPix60; | 145 | sgListViewCompletedPix[3] = &listviewPix60; |
145 | sgListViewCompletedPix[4] = &listviewPix80; | 146 | sgListViewCompletedPix[4] = &listviewPix80; |
146 | if ( sgListViewCompletedPix[5]->height() < 5 ) { | ||
147 | //int size = 12; | 147 | //int size = 12; |
148 | { | ||
148 | sgListViewCompletedPix[5]->resize( 11, 11 ); | 149 | sgListViewCompletedPix[5]->resize( 11, 11 ); |
149 | sgListViewCompletedPix[5]->fill( Qt::white ); | 150 | sgListViewCompletedPix[5]->fill( Qt::white ); |
150 | QPainter p ( sgListViewCompletedPix[5] ); | 151 | QPainter p ( sgListViewCompletedPix[5] ); |
@@ -160,6 +161,16 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) : | |||
160 | if ( iii ) | 161 | if ( iii ) |
161 | p.fillRect( 1,1,iii*2,9,Qt::gray ); | 162 | p.fillRect( 1,1,iii*2,9,Qt::gray ); |
162 | } | 163 | } |
164 | sgListViewJournalPix = &journalPix; | ||
165 | sgListViewJournalPix->resize( 11, 11 ); | ||
166 | sgListViewJournalPix->fill( Qt::white ); | ||
167 | { | ||
168 | QPainter p ( sgListViewJournalPix ); | ||
169 | p.drawRect( 0,0,11,11); | ||
170 | p.drawLine( 2,3,5,3); | ||
171 | p.drawLine( 2,5,8,5); | ||
172 | p.drawLine( 2,7,6,7); | ||
173 | } | ||
163 | } | 174 | } |
164 | mClosed = false; | 175 | mClosed = false; |
165 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; | 176 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; |