From 2a3542ecc4eee8bb4b3d81fcf69e0cf97f07ff4a Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 10 Jul 2005 01:20:01 +0000 Subject: fixxx --- (limited to 'korganizer') diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index ab69158..5a2482e 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -2810,7 +2810,8 @@ void CalendarView::checkConflictForEvent() int hour = conflict.time().hour(); mViewManager->agendaView()->setStartHour( hour ); topLevelWidget()->setCaption( i18n("Conflict %1 <-> %2"). arg( mConflictingEvent->summary().left( 20 ) ).arg( cE->summary().left( 20 ) ) ); - } + } else + topLevelWidget()->setCaption( i18n("No conflict found") ); mConflictingEvent = 0; return; diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 94f35e6..3ae977d 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -523,31 +523,38 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : QPushButton * allclose = new QPushButton( "C",mQuickBar ); QPushButton * flat = new QPushButton( "F",mQuickBar ); - int fixwid = flat->sizeHint().height(); - if ( QApplication::desktop()->width() >= 800 ) + int fixwid = mQuickAdd->sizeHint().height(); + if ( QApplication::desktop()->width() > 800 ) fixwid *= 2; - flat->setFixedWidth( fixwid ); connect ( flat, SIGNAL ( clicked()), SLOT ( setAllFlat())); - allopen->setFixedWidth( fixwid ); connect ( allopen, SIGNAL ( clicked()), SLOT ( setAllOpen())); - allclose->setFixedWidth( fixwid ); connect ( allclose, SIGNAL ( clicked()), SLOT ( setAllClose())); s_done->setPixmap( SmallIcon("greenhook16")); - s_done->setFixedWidth( fixwid ); s_done->setFixedHeight( flat->sizeHint().height() ); connect ( s_done, SIGNAL ( clicked()), SLOT ( toggleCompleted())); s_run->setPixmap( SmallIcon("ko16old")); - s_run->setFixedWidth( fixwid ); - s_run->setFixedHeight( flat->sizeHint().height() ); connect ( s_run, SIGNAL ( clicked()), SLOT ( toggleRunning())); - mNewSubBut->setFixedWidth( fixwid*3/2 ); connect ( mNewSubBut, SIGNAL ( clicked()), SLOT ( newSubTodo())); + + mNewSubBut->setFixedWidth(mNewSubBut->sizeHint().width() ); mNewSubBut->setEnabled( false ); + flat->setFixedWidth( fixwid ); + s_done->setFixedWidth( fixwid ); + allopen->setFixedWidth( fixwid ); + allclose->setFixedWidth( fixwid ); + s_run->setFixedWidth( fixwid ); + if ( QApplication::desktop()->width() < 800 ) { + flat->setFixedHeight( fixwid ); + s_done->setFixedHeight( fixwid ); + allopen->setFixedHeight( fixwid ); + allclose->setFixedHeight( fixwid ); + s_run->setFixedHeight( fixwid ); + mNewSubBut->setFixedHeight( fixwid ); + } quickLayout->addWidget( mNewSubBut ); quickLayout->addWidget( s_done ); quickLayout->addWidget( s_run ); - quickLayout->addWidget( allopen ); quickLayout->addWidget( allclose ); quickLayout->addWidget( flat ); @@ -1114,9 +1121,9 @@ void KOTodoView::popupMenu(QListViewItem *item,const QPoint &p,int column) case 3: moveTodo(); break; - case 8: + case 7: mCategoryPopupMenu->popup(QCursor::pos ()); break; - case 9: + case 8: mCalPopupMenu->popup(QCursor::pos ()); break; default: mItemPopupMenu->popup(QCursor::pos()); -- cgit v0.9.0.2