author | zautrix <zautrix> | 2005-06-18 09:12:06 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-18 09:12:06 (UTC) |
commit | 39112dfe29d2108d54d37f25dc57dcd9299f1f93 (patch) (side-by-side diff) | |
tree | d240d7a346ae56d41a68e77ae83eba119665b86b /korganizer/mainwindow.cpp | |
parent | 86e7069527cf45b4ba7889619fb0a8a6dd5867cc (diff) | |
download | kdepimpi-39112dfe29d2108d54d37f25dc57dcd9299f1f93.zip kdepimpi-39112dfe29d2108d54d37f25dc57dcd9299f1f93.tar.gz kdepimpi-39112dfe29d2108d54d37f25dc57dcd9299f1f93.tar.bz2 |
icons for todos
-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 @@ -116,37 +116,66 @@ class KOex2phonePrefs : public QDialog lay->addWidget( cancel ); connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); resize( 220, 240 ); qApp->processEvents(); int dw = QApplication::desktop()->width(); int dh = QApplication::desktop()->height(); move( (dw-width())/2, (dh - height() )/2 ); } public: QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel; QCheckBox* mWriteBackFuture; QSpinBox* mWriteBackFutureWeeks; }; +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"; QString confFile = locateLocal("config","korganizerrc"); QFileInfo finf ( confFile ); bool showWarning = !finf.exists(); setIcon(SmallIcon( "ko24" ) ); mBlockAtStartup = true; mFlagKeyPressed = false; setCaption("KO/Pi"); KOPrefs *p = KOPrefs::instance(); KPimGlobalPrefs::instance()->setGlobalConfig(); p->mCurrentDisplayedView = 0; if ( p->mHourSize > 22 ) p->mHourSize = 22; QMainWindow::ToolBarDock tbd; if ( p->mToolBarHor ) { |