author | zautrix <zautrix> | 2005-08-22 10:49:00 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-08-22 10:49:00 (UTC) |
commit | f516a558e6d18982a54152b28ca3da78fe76e3fc (patch) (unidiff) | |
tree | 231fa0bd8fe72db6cdae319def362e07945b1e2c | |
parent | 4b60cc60255c64717a2d4011d561c72b6878cdb4 (diff) | |
download | kdepimpi-f516a558e6d18982a54152b28ca3da78fe76e3fc.zip kdepimpi-f516a558e6d18982a54152b28ca3da78fe76e3fc.tar.gz kdepimpi-f516a558e6d18982a54152b28ca3da78fe76e3fc.tar.bz2 |
recurrence default fix
-rw-r--r-- | bin/kdepim/WhatsNew.txt | 1 | ||||
-rw-r--r-- | korganizer/koeditorrecurrence.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 37266bf..a864f1d 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,36 +1,37 @@ | |||
1 | Info about the changes in new versions of KDE-Pim/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | 2 | ||
3 | ********** VERSION 2.2.3 ************ | 3 | ********** VERSION 2.2.3 ************ |
4 | 4 | ||
5 | Fixed a problem with (non empty) exception dates of recurring events for newly created events. | ||
5 | 6 | ||
6 | 7 | ||
7 | ********** VERSION 2.2.2 ************ | 8 | ********** VERSION 2.2.2 ************ |
8 | 9 | ||
9 | KO/Pi: | 10 | KO/Pi: |
10 | Fixed a problem with the sort order of last modified date in list view. | 11 | Fixed a problem with the sort order of last modified date in list view. |
11 | KA/Pi: | 12 | KA/Pi: |
12 | Fixed a resource config read problem on windows. | 13 | Fixed a resource config read problem on windows. |
13 | 14 | ||
14 | 15 | ||
15 | ********** VERSION 2.2.1 ************ | 16 | ********** VERSION 2.2.1 ************ |
16 | 17 | ||
17 | KO/Pi: | 18 | KO/Pi: |
18 | Fixed a problem displaying very long allday events in agenda view in single day mode. | 19 | Fixed a problem displaying very long allday events in agenda view in single day mode. |
19 | Fixed a problem with the default settings for new todos. | 20 | Fixed a problem with the default settings for new todos. |
20 | Added an error message dialog if saving of calendar files is not possible. | 21 | Added an error message dialog if saving of calendar files is not possible. |
21 | Made it impossible to close KO/Pi if saving fails. | 22 | Made it impossible to close KO/Pi if saving fails. |
22 | Fixed a problem adding calendars on windows such that these calendars can be used on the memory stick. | 23 | Fixed a problem adding calendars on windows such that these calendars can be used on the memory stick. |
23 | Added config options for conflict detection. | 24 | Added config options for conflict detection. |
24 | 25 | ||
25 | KA/Pi: | 26 | KA/Pi: |
26 | Added a config option to turn on asking before a contact is deleted. | 27 | Added a config option to turn on asking before a contact is deleted. |
27 | Fixed a problem with the default view and view selection at startup. | 28 | Fixed a problem with the default view and view selection at startup. |
28 | Formatted name is now set on import, if formatted name is empty. | 29 | Formatted name is now set on import, if formatted name is empty. |
29 | Fixed a problem of displaying images in the contact details view: | 30 | Fixed a problem of displaying images in the contact details view: |
30 | Now the wid/hei ratio is not changed. | 31 | Now the wid/hei ratio is not changed. |
31 | I a picture is larger than 128 pixels in wid or hei it is downscaled to | 32 | I a picture is larger than 128 pixels in wid or hei it is downscaled to |
32 | max 128 pixels wid/hei. | 33 | max 128 pixels wid/hei. |
33 | 34 | ||
34 | ********** VERSION 2.2.0 ************ | 35 | ********** VERSION 2.2.0 ************ |
35 | 36 | ||
36 | New stable release! | 37 | New stable release! |
diff --git a/korganizer/koeditorrecurrence.cpp b/korganizer/koeditorrecurrence.cpp index 0e74a99..e0380c4 100644 --- a/korganizer/koeditorrecurrence.cpp +++ b/korganizer/koeditorrecurrence.cpp | |||
@@ -396,64 +396,66 @@ ExceptionsWidget::ExceptionsWidget( QWidget *parent, const char *name ) : | |||
396 | mExceptionDateEdit = new KDateEdit( box ); | 396 | mExceptionDateEdit = new KDateEdit( box ); |
397 | boxLayout->addWidget( mExceptionDateEdit, 0, 0 ); | 397 | boxLayout->addWidget( mExceptionDateEdit, 0, 0 ); |
398 | 398 | ||
399 | QPushButton *addExceptionButton = new QPushButton( i18n("Add"), box ); | 399 | QPushButton *addExceptionButton = new QPushButton( i18n("Add"), box ); |
400 | boxLayout->addWidget( addExceptionButton, 1, 0 ); | 400 | boxLayout->addWidget( addExceptionButton, 1, 0 ); |
401 | QPushButton *changeExceptionButton = new QPushButton( i18n("Change"), box ); | 401 | QPushButton *changeExceptionButton = new QPushButton( i18n("Change"), box ); |
402 | boxLayout->addWidget( changeExceptionButton, 2, 0 ); | 402 | boxLayout->addWidget( changeExceptionButton, 2, 0 ); |
403 | QPushButton *deleteExceptionButton = new QPushButton( i18n("Delete"), box ); | 403 | QPushButton *deleteExceptionButton = new QPushButton( i18n("Delete"), box ); |
404 | boxLayout->addWidget( deleteExceptionButton, 3, 0 ); | 404 | boxLayout->addWidget( deleteExceptionButton, 3, 0 ); |
405 | 405 | ||
406 | mExceptionList = new QListBox( box ); | 406 | mExceptionList = new QListBox( box ); |
407 | boxLayout->addMultiCellWidget( mExceptionList, 0, 3, 1, 1 ); | 407 | boxLayout->addMultiCellWidget( mExceptionList, 0, 3, 1, 1 ); |
408 | 408 | ||
409 | boxLayout->setRowStretch( 4, 1 ); | 409 | boxLayout->setRowStretch( 4, 1 ); |
410 | boxLayout->setColStretch( 1, 3 ); | 410 | boxLayout->setColStretch( 1, 3 ); |
411 | 411 | ||
412 | connect( addExceptionButton, SIGNAL( clicked() ), | 412 | connect( addExceptionButton, SIGNAL( clicked() ), |
413 | SLOT( addException() ) ); | 413 | SLOT( addException() ) ); |
414 | connect( changeExceptionButton, SIGNAL( clicked() ), | 414 | connect( changeExceptionButton, SIGNAL( clicked() ), |
415 | SLOT( changeException() ) ); | 415 | SLOT( changeException() ) ); |
416 | connect( deleteExceptionButton, SIGNAL( clicked() ), | 416 | connect( deleteExceptionButton, SIGNAL( clicked() ), |
417 | SLOT( deleteException() ) ); | 417 | SLOT( deleteException() ) ); |
418 | if ( QApplication::desktop()->width() < 480 ) { | 418 | if ( QApplication::desktop()->width() < 480 ) { |
419 | setMinimumWidth( 220 ); | 419 | setMinimumWidth( 220 ); |
420 | } else { | 420 | } else { |
421 | setMinimumWidth( 440 ); | 421 | setMinimumWidth( 440 ); |
422 | mExceptionDateEdit->setMinimumWidth( 200 ); | 422 | mExceptionDateEdit->setMinimumWidth( 200 ); |
423 | } | 423 | } |
424 | } | 424 | } |
425 | 425 | ||
426 | void ExceptionsWidget::setDefaults( const QDateTime &from ) | 426 | void ExceptionsWidget::setDefaults( const QDateTime &from ) |
427 | { | 427 | { |
428 | mExceptionList->clear(); | ||
429 | mExceptionDates.clear(); | ||
428 | mExceptionDateEdit->setDate( from.date() ); | 430 | mExceptionDateEdit->setDate( from.date() ); |
429 | } | 431 | } |
430 | 432 | ||
431 | void ExceptionsWidget::addException() | 433 | void ExceptionsWidget::addException() |
432 | { | 434 | { |
433 | QDate date = mExceptionDateEdit->date(); | 435 | QDate date = mExceptionDateEdit->date(); |
434 | QString dateStr = KGlobal::locale()->formatDate( date ); | 436 | QString dateStr = KGlobal::locale()->formatDate( date ); |
435 | if( !mExceptionList->findItem( dateStr ) ) { | 437 | if( !mExceptionList->findItem( dateStr ) ) { |
436 | mExceptionDates.append( date ); | 438 | mExceptionDates.append( date ); |
437 | mExceptionList->insertItem( dateStr ); | 439 | mExceptionList->insertItem( dateStr ); |
438 | } | 440 | } |
439 | } | 441 | } |
440 | 442 | ||
441 | void ExceptionsWidget::changeException() | 443 | void ExceptionsWidget::changeException() |
442 | { | 444 | { |
443 | int pos = mExceptionList->currentItem(); | 445 | int pos = mExceptionList->currentItem(); |
444 | if ( pos < 0 ) return; | 446 | if ( pos < 0 ) return; |
445 | 447 | ||
446 | QDate date = mExceptionDateEdit->date(); | 448 | QDate date = mExceptionDateEdit->date(); |
447 | mExceptionDates[ pos ] = date; | 449 | mExceptionDates[ pos ] = date; |
448 | mExceptionList->changeItem( KGlobal::locale()->formatDate( date ), pos ); | 450 | mExceptionList->changeItem( KGlobal::locale()->formatDate( date ), pos ); |
449 | } | 451 | } |
450 | 452 | ||
451 | void ExceptionsWidget::deleteException() | 453 | void ExceptionsWidget::deleteException() |
452 | { | 454 | { |
453 | int pos = mExceptionList->currentItem(); | 455 | int pos = mExceptionList->currentItem(); |
454 | if ( pos < 0 ) return; | 456 | if ( pos < 0 ) return; |
455 | 457 | ||
456 | mExceptionDates.remove( mExceptionDates.at( pos ) ); | 458 | mExceptionDates.remove( mExceptionDates.at( pos ) ); |
457 | mExceptionList->removeItem( pos ); | 459 | mExceptionList->removeItem( pos ); |
458 | } | 460 | } |
459 | 461 | ||