author | zautrix <zautrix> | 2005-03-07 16:50:01 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-07 16:50:01 (UTC) |
commit | eae0ddd71371d2e56b39891d05ca3a385c33727b (patch) (side-by-side diff) | |
tree | 1586419ab63d0edbf939f0e1751abeb469f66eb5 /korganizer | |
parent | 584b030a610cedf167f4a75c19ce28e6526ad293 (diff) | |
download | kdepimpi-eae0ddd71371d2e56b39891d05ca3a385c33727b.zip kdepimpi-eae0ddd71371d2e56b39891d05ca3a385c33727b.tar.gz kdepimpi-eae0ddd71371d2e56b39891d05ca3a385c33727b.tar.bz2 |
icons added
-rw-r--r-- | korganizer/kotodoviewitem.cpp | 7 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 29 |
2 files changed, 21 insertions, 15 deletions
diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp index 70f00c6..6559119 100644 --- a/korganizer/kotodoviewitem.cpp +++ b/korganizer/kotodoviewitem.cpp @@ -366,4 +366,7 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i } - - int odue = mTodo->hasDueSubTodo( !isOpen()); + bool openMode = !isOpen(); + // maybe we are in flat-display-mode + if ( !firstChild() ) + openMode = false; + int odue = mTodo->hasDueSubTodo( openMode ); if (odue == 2) { diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 006a8dd..019f41f 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -521,2 +521,15 @@ void MainWindow::initActions() QPopupMenu *helpMenu = new QPopupMenu( this ); + + QIconSet icon; + int pixWid = 22, pixHei = 22; + QString pathString = ""; + if ( !p->mToolBarMiniIcons ) { + if ( QApplication::desktop()->width() < 480 ) { + pathString += "icons16/"; + pixWid = 18; pixHei = 16; + } + } else { + pathString += "iconsmini/"; + pixWid = 18; pixHei = 16; + } if ( KOPrefs::instance()->mShowFullMenu ) { @@ -541,3 +554,5 @@ void MainWindow::initActions() QPopupMenu *menuBar = new QPopupMenu( this ); - menuBar1->insertItem( i18n("ME"), menuBar); + icon = loadPixmap( pathString + "z_menu" ); + menuBar1->insertItem( icon.pixmap(), menuBar); + //menuBar1->insertItem( i18n("ME"), menuBar); menuBar->insertItem( i18n("File"), importMenu ); @@ -555,14 +570,2 @@ void MainWindow::initActions() connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) ); - QIconSet icon; - int pixWid = 22, pixHei = 22; - QString pathString = ""; - if ( !p->mToolBarMiniIcons ) { - if ( QApplication::desktop()->width() < 480 ) { - pathString += "icons16/"; - pixWid = 18; pixHei = 16; - } - } else { - pathString += "iconsmini/"; - pixWid = 18; pixHei = 16; - } mWeekBgColor = iconToolBar->backgroundColor(); |