author | zautrix <zautrix> | 2005-07-06 19:41:06 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-06 19:41:06 (UTC) |
commit | 984e2132871c79990f6d9eac5702f7f32186f235 (patch) (unidiff) | |
tree | 2bc4b50ee8b8284e74fd53bdfb78d6d3107806a0 /korganizer/mainwindow.cpp | |
parent | c79a8a4950c098fa6f5a7ae8396feb4dd3a91577 (diff) | |
download | kdepimpi-984e2132871c79990f6d9eac5702f7f32186f235.zip kdepimpi-984e2132871c79990f6d9eac5702f7f32186f235.tar.gz kdepimpi-984e2132871c79990f6d9eac5702f7f32186f235.tar.bz2 |
fixxx
-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 | |||
@@ -128,26 +128,27 @@ public: | |||
128 | QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel; | 128 | QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel; |
129 | QCheckBox* mWriteBackFuture; | 129 | QCheckBox* mWriteBackFuture; |
130 | QSpinBox* mWriteBackFutureWeeks; | 130 | QSpinBox* mWriteBackFutureWeeks; |
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; |
137 | MainWindow::MainWindow( QWidget *parent, const char *name ) : | 138 | MainWindow::MainWindow( QWidget *parent, const char *name ) : |
138 | QMainWindow( parent, name ) | 139 | QMainWindow( parent, name ) |
139 | { | 140 | { |
140 | sgListViewCompletedPix[5] = &listviewPix; | 141 | sgListViewCompletedPix[5] = &listviewPix; |
141 | sgListViewCompletedPix[0] = &listviewPix0; | 142 | sgListViewCompletedPix[0] = &listviewPix0; |
142 | sgListViewCompletedPix[1] = &listviewPix20; | 143 | sgListViewCompletedPix[1] = &listviewPix20; |
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] ); |
151 | p.drawRect( 0,0,11,11); | 152 | p.drawRect( 0,0,11,11); |
152 | p.drawLine ( 2, 5, 4 , 7 ) ; | 153 | p.drawLine ( 2, 5, 4 , 7 ) ; |
153 | p.drawLine ( 4 , 7 , 8, 3) ; | 154 | p.drawLine ( 4 , 7 , 8, 3) ; |
@@ -157,12 +158,22 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) : | |||
157 | sgListViewCompletedPix[iii]->fill( Qt::white ); | 158 | sgListViewCompletedPix[iii]->fill( Qt::white ); |
158 | QPainter p ( sgListViewCompletedPix[iii] ); | 159 | QPainter p ( sgListViewCompletedPix[iii] ); |
159 | p.drawRect( 0,0,11,11); | 160 | p.drawRect( 0,0,11,11); |
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"; |
166 | QString confFile = locateLocal("config","korganizerrc"); | 177 | QString confFile = locateLocal("config","korganizerrc"); |
167 | QFileInfo finf ( confFile ); | 178 | QFileInfo finf ( confFile ); |
168 | bool showWarning = !finf.exists(); | 179 | bool showWarning = !finf.exists(); |