author | zautrix <zautrix> | 2004-08-06 20:22:49 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-06 20:22:49 (UTC) |
commit | 47bd2528db547822b6df6e287e02b6e2ebf7acd8 (patch) (side-by-side diff) | |
tree | d05d831afe3c49c55ed89db6a9cb4ce9fc3a6835 | |
parent | 184e3d096e83f777cce9b919f9f9d56e5960e067 (diff) | |
download | kdepimpi-47bd2528db547822b6df6e287e02b6e2ebf7acd8.zip kdepimpi-47bd2528db547822b6df6e287e02b6e2ebf7acd8.tar.gz kdepimpi-47bd2528db547822b6df6e287e02b6e2ebf7acd8.tar.bz2 |
Added licence to kapi
-rw-r--r-- | kaddressbook/kabcore.cpp | 10 | ||||
-rw-r--r-- | kaddressbook/kabcore.h | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 25891a0..2494aa2 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -1632,13 +1632,15 @@ void KABCore::initActions() SLOT( removeVoice() ), actionCollection(), "remove_voice" ); mActionImportOL = new KAction( i18n( "Import from OL..." ), 0, this, SLOT( importFromOL() ), actionCollection(), "import_OL" ); #ifdef KAB_EMBEDDED - + mActionLicence = new KAction( i18n( "Licence" ), "licence", 0, + this, SLOT( showLicence() ), actionCollection(), + "licence_about_data" ); mActionAboutKAddressbook = new KAction( i18n( "&About KAddressBook" ), "kaddressbook2", 0, this, SLOT( createAboutData() ), actionCollection(), "kaddressbook_about_data" ); #endif //KAB_EMBEDDED clipboardDataChanged(); @@ -1756,13 +1758,13 @@ void KABCore::addActionsManually() settingsMenu->insertSeparator(); mActionWhoAmI->plug( settingsMenu ); mActionCategories->plug( settingsMenu ); mActionAboutKAddressbook->plug( helpMenu ); - + mActionLicence->plug( helpMenu ); if (QApplication::desktop()->width() > 320 ) { mActionEditAddressee->plug( tb ); mActionSave->plug( tb ); mViewManager->getFilterAction()->plug ( tb); @@ -1789,12 +1791,16 @@ void KABCore::addActionsManually() //US topLayout->addWidget( mJumpButtonBar ); this->layout()->add( mJumpButtonBar ); */ #endif //KAB_EMBEDDED } +void KABCore::showLicence() +{ + KApplication::showLicence(); +} void KABCore::removeVoice() { if ( KMessageBox::questionYesNo( this, i18n("After importing, phone numbers\nmay have two or more types.\n(E.g. work+voice)\nThese numbers are shown as \"other\".\nClick Yes to remove the voice type\nfrom numbers with more than one type.\n\nRemove voice type?") ) == KMessageBox::No ) return; KABC::Addressee::List list = mViewManager->selectedAddressees(); KABC::Addressee::List::Iterator it; diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h index be39148..6bbdfd4 100644 --- a/kaddressbook/kabcore.h +++ b/kaddressbook/kabcore.h @@ -139,12 +139,13 @@ class KABCore : public QWidget public slots: #ifdef KAB_EMBEDDED void createAboutData(); #endif //KAB_EMBEDDED void statusMessage(QString, int time = 0 ); + void showLicence(); /** Is called whenever a contact is selected in the view. */ void setContactSelected( const QString &uid ); /** @@ -404,12 +405,13 @@ class KABCore : public QWidget KAction *mActionKeyBindings; KToggleAction *mActionJumpBar; KToggleAction *mActionDetails; KAction *mActionWhoAmI; KAction *mActionCategories; KAction *mActionAboutKAddressbook; + KAction *mActionLicence; KAction *mActionDeleteView; QPopupMenu *viewMenu; QPopupMenu *filterMenu; QPopupMenu *settingsMenu; |