author | zautrix <zautrix> | 2005-07-10 01:20:01 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-10 01:20:01 (UTC) |
commit | 2a3542ecc4eee8bb4b3d81fcf69e0cf97f07ff4a (patch) (unidiff) | |
tree | b85ac7b9a3bc85abe04f6e3aea77b0e70fa22396 | |
parent | 2d1e1fe5d290503db8c0462fc294f5c04f58e95c (diff) | |
download | kdepimpi-2a3542ecc4eee8bb4b3d81fcf69e0cf97f07ff4a.zip kdepimpi-2a3542ecc4eee8bb4b3d81fcf69e0cf97f07ff4a.tar.gz kdepimpi-2a3542ecc4eee8bb4b3d81fcf69e0cf97f07ff4a.tar.bz2 |
fixxx
-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 | |||
@@ -2811,5 +2811,6 @@ void CalendarView::checkConflictForEvent() | |||
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; |
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 94f35e6..3ae977d 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp | |||
@@ -524,29 +524,36 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : | |||
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 ); |
@@ -1115,7 +1122,7 @@ void KOTodoView::popupMenu(QListViewItem *item,const QPoint &p,int column) | |||
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: |