-rw-r--r-- | korganizer/calendarview.cpp | 3 | ||||
-rw-r--r-- | korganizer/kotodoview.cpp | 31 |
2 files changed, 21 insertions, 13 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index ab69158..5a2482e 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -2805,17 +2805,18 @@ void CalendarView::checkConflictForEvent() | |||
2805 | return; | 2805 | return; |
2806 | 2806 | ||
2807 | if ( mViewManager->currentView() != mViewManager->agendaView() || mNavigator->selectedDates().count() > 1 ) | 2807 | if ( mViewManager->currentView() != mViewManager->agendaView() || mNavigator->selectedDates().count() > 1 ) |
2808 | mViewManager->showDayView(); | 2808 | mViewManager->showDayView(); |
2809 | mNavigator->slotDaySelect( conflict.date() ); | 2809 | mNavigator->slotDaySelect( conflict.date() ); |
2810 | int hour = conflict.time().hour(); | 2810 | int hour = conflict.time().hour(); |
2811 | mViewManager->agendaView()->setStartHour( hour ); | 2811 | mViewManager->agendaView()->setStartHour( hour ); |
2812 | topLevelWidget()->setCaption( i18n("Conflict %1 <-> %2"). arg( mConflictingEvent->summary().left( 20 ) ).arg( cE->summary().left( 20 ) ) ); | 2812 | topLevelWidget()->setCaption( i18n("Conflict %1 <-> %2"). arg( mConflictingEvent->summary().left( 20 ) ).arg( cE->summary().left( 20 ) ) ); |
2813 | } | 2813 | } else |
2814 | topLevelWidget()->setCaption( i18n("No conflict found") ); | ||
2814 | mConflictingEvent = 0; | 2815 | mConflictingEvent = 0; |
2815 | return; | 2816 | return; |
2816 | 2817 | ||
2817 | } | 2818 | } |
2818 | 2819 | ||
2819 | void CalendarView::updateTodoViews() | 2820 | void CalendarView::updateTodoViews() |
2820 | { | 2821 | { |
2821 | mTodoList->updateView(); | 2822 | mTodoList->updateView(); |
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 94f35e6..3ae977d 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp | |||
@@ -518,41 +518,48 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : | |||
518 | quickLayout->addWidget( mQuickAdd ); | 518 | quickLayout->addWidget( mQuickAdd ); |
519 | mNewSubBut = new QPushButton( "sub",mQuickBar ); | 519 | mNewSubBut = new QPushButton( "sub",mQuickBar ); |
520 | QPushButton * s_done = new QPushButton( "D",mQuickBar ); | 520 | QPushButton * s_done = new QPushButton( "D",mQuickBar ); |
521 | QPushButton * s_run = new QPushButton( "R",mQuickBar ); | 521 | QPushButton * s_run = new QPushButton( "R",mQuickBar ); |
522 | QPushButton * allopen = new QPushButton( "O",mQuickBar ); | 522 | QPushButton * allopen = new QPushButton( "O",mQuickBar ); |
523 | QPushButton * allclose = new QPushButton( "C",mQuickBar ); | 523 | QPushButton * allclose = new QPushButton( "C",mQuickBar ); |
524 | QPushButton * flat = new QPushButton( "F",mQuickBar ); | 524 | QPushButton * flat = new QPushButton( "F",mQuickBar ); |
525 | 525 | ||
526 | int fixwid = flat->sizeHint().height(); | 526 | int fixwid = mQuickAdd->sizeHint().height(); |
527 | if ( QApplication::desktop()->width() >= 800 ) | 527 | if ( QApplication::desktop()->width() > 800 ) |
528 | fixwid *= 2; | 528 | fixwid *= 2; |
529 | flat->setFixedWidth( fixwid ); | ||
530 | connect ( flat, SIGNAL ( clicked()), SLOT ( setAllFlat())); | 529 | connect ( flat, SIGNAL ( clicked()), SLOT ( setAllFlat())); |
531 | allopen->setFixedWidth( fixwid ); | ||
532 | connect ( allopen, SIGNAL ( clicked()), SLOT ( setAllOpen())); | 530 | connect ( allopen, SIGNAL ( clicked()), SLOT ( setAllOpen())); |
533 | allclose->setFixedWidth( fixwid ); | ||
534 | connect ( allclose, SIGNAL ( clicked()), SLOT ( setAllClose())); | 531 | connect ( allclose, SIGNAL ( clicked()), SLOT ( setAllClose())); |
535 | s_done->setPixmap( SmallIcon("greenhook16")); | 532 | s_done->setPixmap( SmallIcon("greenhook16")); |
536 | s_done->setFixedWidth( fixwid ); | ||
537 | s_done->setFixedHeight( flat->sizeHint().height() ); | 533 | s_done->setFixedHeight( flat->sizeHint().height() ); |
538 | connect ( s_done, SIGNAL ( clicked()), SLOT ( toggleCompleted())); | 534 | connect ( s_done, SIGNAL ( clicked()), SLOT ( toggleCompleted())); |
539 | s_run->setPixmap( SmallIcon("ko16old")); | 535 | s_run->setPixmap( SmallIcon("ko16old")); |
540 | s_run->setFixedWidth( fixwid ); | ||
541 | s_run->setFixedHeight( flat->sizeHint().height() ); | ||
542 | connect ( s_run, SIGNAL ( clicked()), SLOT ( toggleRunning())); | 536 | connect ( s_run, SIGNAL ( clicked()), SLOT ( toggleRunning())); |
543 | 537 | ||
544 | mNewSubBut->setFixedWidth( fixwid*3/2 ); | ||
545 | connect ( mNewSubBut, SIGNAL ( clicked()), SLOT ( newSubTodo())); | 538 | connect ( mNewSubBut, SIGNAL ( clicked()), SLOT ( newSubTodo())); |
539 | |||
540 | mNewSubBut->setFixedWidth(mNewSubBut->sizeHint().width() ); | ||
546 | mNewSubBut->setEnabled( false ); | 541 | mNewSubBut->setEnabled( false ); |
542 | flat->setFixedWidth( fixwid ); | ||
543 | s_done->setFixedWidth( fixwid ); | ||
544 | allopen->setFixedWidth( fixwid ); | ||
545 | allclose->setFixedWidth( fixwid ); | ||
546 | s_run->setFixedWidth( fixwid ); | ||
547 | if ( QApplication::desktop()->width() < 800 ) { | ||
548 | flat->setFixedHeight( fixwid ); | ||
549 | s_done->setFixedHeight( fixwid ); | ||
550 | allopen->setFixedHeight( fixwid ); | ||
551 | allclose->setFixedHeight( fixwid ); | ||
552 | s_run->setFixedHeight( fixwid ); | ||
553 | mNewSubBut->setFixedHeight( fixwid ); | ||
554 | } | ||
547 | quickLayout->addWidget( mNewSubBut ); | 555 | quickLayout->addWidget( mNewSubBut ); |
548 | quickLayout->addWidget( s_done ); | 556 | quickLayout->addWidget( s_done ); |
549 | quickLayout->addWidget( s_run ); | 557 | quickLayout->addWidget( s_run ); |
550 | |||
551 | quickLayout->addWidget( allopen ); | 558 | quickLayout->addWidget( allopen ); |
552 | quickLayout->addWidget( allclose ); | 559 | quickLayout->addWidget( allclose ); |
553 | quickLayout->addWidget( flat ); | 560 | quickLayout->addWidget( flat ); |
554 | 561 | ||
555 | if ( !KOPrefs::instance()->mEnableQuickTodo ) mQuickBar->hide(); | 562 | if ( !KOPrefs::instance()->mEnableQuickTodo ) mQuickBar->hide(); |
556 | 563 | ||
557 | mTodoListView = new KOTodoListView(calendar,this, name ); | 564 | mTodoListView = new KOTodoListView(calendar,this, name ); |
558 | topLayout->addWidget(mTodoListView); | 565 | topLayout->addWidget(mTodoListView); |
@@ -1109,19 +1116,19 @@ void KOTodoView::popupMenu(QListViewItem *item,const QPoint &p,int column) | |||
1109 | switch (column){ | 1116 | switch (column){ |
1110 | case 1: | 1117 | case 1: |
1111 | mPriorityPopupMenu->popup(QCursor::pos ()); break; | 1118 | mPriorityPopupMenu->popup(QCursor::pos ()); break; |
1112 | case 2: | 1119 | case 2: |
1113 | mPercentageCompletedPopupMenu->popup(QCursor::pos ()); break; | 1120 | mPercentageCompletedPopupMenu->popup(QCursor::pos ()); break; |
1114 | case 3: | 1121 | case 3: |
1115 | moveTodo(); | 1122 | moveTodo(); |
1116 | break; | 1123 | break; |
1117 | case 8: | 1124 | case 7: |
1118 | mCategoryPopupMenu->popup(QCursor::pos ()); break; | 1125 | mCategoryPopupMenu->popup(QCursor::pos ()); break; |
1119 | case 9: | 1126 | case 8: |
1120 | mCalPopupMenu->popup(QCursor::pos ()); break; | 1127 | mCalPopupMenu->popup(QCursor::pos ()); break; |
1121 | default: | 1128 | default: |
1122 | mItemPopupMenu->popup(QCursor::pos()); | 1129 | mItemPopupMenu->popup(QCursor::pos()); |
1123 | } | 1130 | } |
1124 | } else mPopupMenu->popup(QCursor::pos()); | 1131 | } else mPopupMenu->popup(QCursor::pos()); |
1125 | } | 1132 | } |
1126 | void KOTodoView::newTodo() | 1133 | void KOTodoView::newTodo() |
1127 | { | 1134 | { |