-rw-r--r-- | kaddressbook/kabcore.cpp | 34 | ||||
-rw-r--r-- | korganizer/koagendaview.cpp | 11 |
2 files changed, 16 insertions, 29 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index fa9f130..9c40142 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -622,69 +622,49 @@ KABC::Resource *KABCore::requestResource( QWidget *parent ) | |||
622 | } | 622 | } |
623 | 623 | ||
624 | KRES::Resource *res = KRES::SelectDialog::getResource( kresResources, parent ); | 624 | KRES::Resource *res = KRES::SelectDialog::getResource( kresResources, parent ); |
625 | return static_cast<KABC::Resource*>( res ); | 625 | return static_cast<KABC::Resource*>( res ); |
626 | } | 626 | } |
627 | 627 | ||
628 | #ifndef KAB_EMBEDDED | 628 | #ifndef KAB_EMBEDDED |
629 | KAboutData *KABCore::createAboutData() | 629 | KAboutData *KABCore::createAboutData() |
630 | #else //KAB_EMBEDDED | 630 | #else //KAB_EMBEDDED |
631 | void KABCore::createAboutData() | 631 | void KABCore::createAboutData() |
632 | #endif //KAB_EMBEDDED | 632 | #endif //KAB_EMBEDDED |
633 | { | 633 | { |
634 | #ifndef KAB_EMBEDDED | 634 | |
635 | KAboutData *about = new KAboutData( "kaddressbook", I18N_NOOP( "KAddressBook" ), | ||
636 | "3.1", I18N_NOOP( "The KDE Address Book" ), | ||
637 | KAboutData::License_GPL_V2, | ||
638 | I18N_NOOP( "(c) 1997-2003, The KDE PIM Team" ) ); | ||
639 | about->addAuthor( "Tobias Koenig", I18N_NOOP( "Current maintainer " ), "tokoe@kde.org" ); | ||
640 | about->addAuthor( "Don Sanders", I18N_NOOP( "Original author " ) ); | ||
641 | about->addAuthor( "Cornelius Schumacher", | ||
642 | I18N_NOOP( "Co-maintainer, libkabc port, CSV import/export " ), | ||
643 | "schumacher@kde.org" ); | ||
644 | about->addAuthor( "Mike Pilone", I18N_NOOP( "GUI and framework redesign " ), | ||
645 | "mpilone@slac.com" ); | ||
646 | about->addAuthor( "Greg Stern", I18N_NOOP( "DCOP interface" ) ); | ||
647 | about->addAuthor( "Mark Westcott", I18N_NOOP( "Contact pinning" ) ); | ||
648 | about->addAuthor( "Michel Boyer de la Giroday", I18N_NOOP( "LDAP Lookup\n" ), | ||
649 | "michel@klaralvdalens-datakonsult.se" ); | ||
650 | about->addAuthor( "Steffen Hansen", I18N_NOOP( "LDAP Lookup " ), | ||
651 | "hansen@kde.org" ); | ||
652 | |||
653 | return about; | ||
654 | #endif //KAB_EMBEDDED | ||
655 | 635 | ||
656 | QString version; | 636 | QString version; |
657 | #include <../version> | 637 | #include <../version> |
658 | QMessageBox::about( this, "About KAddressbook/Pi", | 638 | QMessageBox::about( this, "About KAddressbook/Pi", |
659 | "KAddressbook/Platform-independent\n" | 639 | "KAddressbook/Platform-independent\n" |
660 | "(KA/Pi) " +version + " - " + | 640 | "(KA/Pi) " +version + " - " + |
661 | #ifdef DESKTOP_VERSION | 641 | #ifdef DESKTOP_VERSION |
662 | "Desktop Edition\n" | 642 | "Desktop Edition\n" |
663 | #else | 643 | #else |
664 | "PDA-Edition\n" | 644 | "PDA-Edition\n" |
665 | "for: Zaurus 5500 / 7x0 / 8x0\n" | 645 | "for: Zaurus 5500 / 7x0 / 8x0\n" |
666 | #endif | 646 | #endif |
667 | 647 | ||
668 | "(c) 2004 Ulf Schenk\n" | 648 | "(c) 2004 Ulf Schenk\n" |
669 | "(c) 2004 Lutz Rogowski\n" | 649 | "(c) 2004-2005 Lutz Rogowski\nrogowski@kde.org\n" |
670 | "(c) 1997-2003, The KDE PIM Team\n" | 650 | "(c) 1997-2003, The KDE PIM Team\n" |
671 | "Tobias Koenig Current maintainer\ntokoe@kde.org\n" | 651 | "Tobias Koenig Maintainer\n" |
672 | "Don Sanders Original author\n" | 652 | "Don Sanders Original author\n" |
673 | "Cornelius Schumacher Co-maintainer\nschumacher@kde.org\n" | 653 | "Cornelius Schumacher Co-maintainer\n" |
674 | "Mike Pilone GUI and framework redesign\nmpilone@slac.com\n" | 654 | "Mike Pilone GUI and framework redesign\n" |
675 | "Greg Stern DCOP interface\n" | 655 | "Greg Stern DCOP interface\n" |
676 | "Mark Westcot Contact pinning\n" | 656 | "Mark Westcot Contact pinning\n" |
677 | "Michel Boyer de la Giroday LDAP Lookup\n" "michel@klaralvdalens-datakonsult.se\n" | 657 | "Michel Boyer de la Giroday LDAP Lookup\n" |
678 | "Steffen Hansen LDAP Lookup\nhansen@kde.org\n" | 658 | "Steffen Hansen LDAP Lookup" |
679 | #ifdef _WIN32_ | 659 | #ifdef _WIN32_ |
680 | "(c) 2004 Lutz Rogowski Import from OL\nrogowski@kde.org\n" | 660 | "(c) 2004 Lutz Rogowski Import from OL\nrogowski@kde.org\n" |
681 | #endif | 661 | #endif |
682 | ); | 662 | ); |
683 | } | 663 | } |
684 | 664 | ||
685 | void KABCore::setContactSelected( const QString &uid ) | 665 | void KABCore::setContactSelected( const QString &uid ) |
686 | { | 666 | { |
687 | KABC::Addressee addr = mAddressBook->findByUid( uid ); | 667 | KABC::Addressee addr = mAddressBook->findByUid( uid ); |
688 | if ( !mDetails->isHidden() ) | 668 | if ( !mDetails->isHidden() ) |
689 | mDetails->setAddressee( addr ); | 669 | mDetails->setAddressee( addr ); |
690 | 670 | ||
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 20a5b74..76d5c4b 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp | |||
@@ -943,26 +943,33 @@ void KOAgendaView::updateConfig() | |||
943 | 943 | ||
944 | //setHolidayMasks(); | 944 | //setHolidayMasks(); |
945 | 945 | ||
946 | //createDayLabels(); called by via updateView(); | 946 | //createDayLabels(); called by via updateView(); |
947 | mEventIndicatorTop->setXOffset(mTimeLabels->width() + mAgenda->frameWidth()); | 947 | mEventIndicatorTop->setXOffset(mTimeLabels->width() + mAgenda->frameWidth()); |
948 | updateView(); | 948 | updateView(); |
949 | mAgenda->restorePosition(); | 949 | mAgenda->restorePosition(); |
950 | } | 950 | } |
951 | 951 | ||
952 | 952 | ||
953 | void KOAgendaView::updateEventDates(KOAgendaItem *item, int type) | 953 | void KOAgendaView::updateEventDates(KOAgendaItem *item, int type) |
954 | { | 954 | { |
955 | // kdDebug() << "KOAgendaView::updateEventDates(): " << item->text() << endl; | 955 | |
956 | //qDebug("KOAgendaView::updateEventDates "); | 956 | |
957 | int xxx = item->cellX(); | ||
958 | //qDebug("KOAgendaView::updateEventDates %d %d %d %d %d", xxx, mMinY.at(xxx),mMaxY.at(xxx),item->cellYTop(),item->cellYBottom() ); | ||
959 | if ( mMinY.at(xxx) > item->cellYTop() ) | ||
960 | mMinY.at(xxx) = item->cellYTop(); | ||
961 | if ( mMaxY.at(xxx) < item->cellYBottom() ) | ||
962 | mMaxY.at(xxx) = item->cellYBottom(); | ||
963 | |||
957 | QDateTime startDt,endDt; | 964 | QDateTime startDt,endDt; |
958 | QDate startDate; | 965 | QDate startDate; |
959 | int lenInSecs; | 966 | int lenInSecs; |
960 | // if ( type == KOAgenda::RESIZETOP ) | 967 | // if ( type == KOAgenda::RESIZETOP ) |
961 | // qDebug("RESIZETOP "); | 968 | // qDebug("RESIZETOP "); |
962 | // if ( type == KOAgenda::RESIZEBOTTOM ) | 969 | // if ( type == KOAgenda::RESIZEBOTTOM ) |
963 | // qDebug("RESIZEBOTTOM "); | 970 | // qDebug("RESIZEBOTTOM "); |
964 | // if ( type == KOAgenda::MOVE ) | 971 | // if ( type == KOAgenda::MOVE ) |
965 | // qDebug("MOVE "); | 972 | // qDebug("MOVE "); |
966 | if ( item->incidence()->type() == "Event" ) { | 973 | if ( item->incidence()->type() == "Event" ) { |
967 | startDt =item->incidence()->dtStart(); | 974 | startDt =item->incidence()->dtStart(); |
968 | endDt = item->incidence()->dtEnd(); | 975 | endDt = item->incidence()->dtEnd(); |