-rw-r--r-- | korganizer/mainwindow.cpp | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index f945383..0367bea 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -130,9 +130,38 @@ public: }; +QPixmap* sgListViewCompletedPix[6]; + + int globalFlagBlockStartup; MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : QMainWindow( parent, name ) { - + sgListViewCompletedPix[5] = &listviewPix; + sgListViewCompletedPix[0] = &listviewPix0; + sgListViewCompletedPix[1] = &listviewPix20; + sgListViewCompletedPix[2] = &listviewPix40; + sgListViewCompletedPix[3] = &listviewPix60; + sgListViewCompletedPix[4] = &listviewPix80; + if ( sgListViewCompletedPix[5]->height() < 5 ) { + int size = 12; + sgListViewCompletedPix[5]->resize( 11, 11 ); + sgListViewCompletedPix[5]->fill( Qt::white ); + QPainter p ( sgListViewCompletedPix[5] ); + p.drawRect( 0,0,11,11); + int half = size/2; + int heihei = size/2; + int x = 1; + p.drawLine ( 2, 5, 4 , 7 ) ; + p.drawLine ( 4 , 7 , 8, 3) ; + int iii = 0; + for ( iii = 0; iii < 5; ++iii ) { + sgListViewCompletedPix[iii]->resize( 11, 11 ); + sgListViewCompletedPix[iii]->fill( Qt::white ); + QPainter p ( sgListViewCompletedPix[iii] ); + p.drawRect( 0,0,11,11); + if ( iii ) + p.fillRect( 1,1,iii*2,9,Qt::gray ); + } + } mClosed = false; //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; |