author | zautrix <zautrix> | 2005-01-18 09:54:32 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-18 09:54:32 (UTC) |
commit | f973a8310cc378cc86d96bfce3f08f06725a2b7d (patch) (unidiff) | |
tree | d5ebdc5193972a99d5c5cbd7957894a41dcd5d67 /korganizer/calendarview.cpp | |
parent | 2d6776d79732f6771885a549de5c37f9e75f7641 (diff) | |
download | kdepimpi-f973a8310cc378cc86d96bfce3f08f06725a2b7d.zip kdepimpi-f973a8310cc378cc86d96bfce3f08f06725a2b7d.tar.gz kdepimpi-f973a8310cc378cc86d96bfce3f08f06725a2b7d.tar.bz2 |
fix
-rw-r--r-- | korganizer/calendarview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index da1edea..9c10ba6 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -2499,38 +2499,40 @@ void CalendarView::showDatePicker( ) | |||
2499 | void CalendarView::showEventEditor() | 2499 | void CalendarView::showEventEditor() |
2500 | { | 2500 | { |
2501 | #ifdef DESKTOP_VERSION | 2501 | #ifdef DESKTOP_VERSION |
2502 | mEventEditor->show(); | 2502 | mEventEditor->show(); |
2503 | #else | 2503 | #else |
2504 | if ( mEventEditor->width() < QApplication::desktop()->width() -60 || mEventEditor->width() > QApplication::desktop()->width() ) { | 2504 | if ( mEventEditor->width() < QApplication::desktop()->width() -60 || mEventEditor->width() > QApplication::desktop()->width() ) { |
2505 | topLevelWidget()->setCaption( i18n("Recreating edit dialog. Please wait...") ); | 2505 | topLevelWidget()->setCaption( i18n("Recreating edit dialog. Please wait...") ); |
2506 | qDebug("CalendarView: recreate mEventEditor %d %d", mEventEditor->width(), QApplication::desktop()->width() ); | 2506 | qDebug("CalendarView: recreate mEventEditor %d %d", mEventEditor->width(), QApplication::desktop()->width() ); |
2507 | delete mEventEditor; | 2507 | delete mEventEditor; |
2508 | mEventEditor = mDialogManager->getEventEditor(); | 2508 | mEventEditor = mDialogManager->getEventEditor(); |
2509 | } | 2509 | } |
2510 | mEventEditor->showMaximized(); | 2510 | mEventEditor->showMaximized(); |
2511 | topLevelWidget()->setCaption( i18n("") ); | ||
2511 | #endif | 2512 | #endif |
2512 | } | 2513 | } |
2513 | void CalendarView::showTodoEditor() | 2514 | void CalendarView::showTodoEditor() |
2514 | { | 2515 | { |
2515 | #ifdef DESKTOP_VERSION | 2516 | #ifdef DESKTOP_VERSION |
2516 | mTodoEditor->show(); | 2517 | mTodoEditor->show(); |
2517 | #else | 2518 | #else |
2518 | if ( mTodoEditor->width() < QApplication::desktop()->width() -60|| mTodoEditor->width() > QApplication::desktop()->width() ) { | 2519 | if ( mTodoEditor->width() < QApplication::desktop()->width() -60|| mTodoEditor->width() > QApplication::desktop()->width() ) { |
2519 | topLevelWidget()->setCaption( i18n("Recreating edit dialog. Please wait...") ); | 2520 | topLevelWidget()->setCaption( i18n("Recreating edit dialog. Please wait...") ); |
2520 | qDebug("CalendarView: recreate mTodoEditor %d %d ", mTodoEditor->width() ,QApplication::desktop()->width() ); | 2521 | qDebug("CalendarView: recreate mTodoEditor %d %d ", mTodoEditor->width() ,QApplication::desktop()->width() ); |
2521 | delete mTodoEditor; | 2522 | delete mTodoEditor; |
2522 | mTodoEditor = mDialogManager->getTodoEditor(); | 2523 | mTodoEditor = mDialogManager->getTodoEditor(); |
2523 | } | 2524 | } |
2524 | mTodoEditor->showMaximized(); | 2525 | mTodoEditor->showMaximized(); |
2526 | topLevelWidget()->setCaption( i18n("") ); | ||
2525 | #endif | 2527 | #endif |
2526 | } | 2528 | } |
2527 | 2529 | ||
2528 | void CalendarView::cloneIncidence() | 2530 | void CalendarView::cloneIncidence() |
2529 | { | 2531 | { |
2530 | Incidence *incidence = currentSelection(); | 2532 | Incidence *incidence = currentSelection(); |
2531 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); | 2533 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); |
2532 | if ( incidence ) { | 2534 | if ( incidence ) { |
2533 | cloneIncidence(incidence); | 2535 | cloneIncidence(incidence); |
2534 | } | 2536 | } |
2535 | } | 2537 | } |
2536 | void CalendarView::moveIncidence() | 2538 | void CalendarView::moveIncidence() |