-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 @@ -1636,5 +1636,7 @@ void KABCore::initActions() "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(), @@ -1760,5 +1762,5 @@ void KABCore::addActionsManually() mActionAboutKAddressbook->plug( helpMenu ); - + mActionLicence->plug( helpMenu ); if (QApplication::desktop()->width() > 320 ) { @@ -1793,4 +1795,8 @@ void KABCore::addActionsManually() #endif //KAB_EMBEDDED } +void KABCore::showLicence() +{ + KApplication::showLicence(); +} void KABCore::removeVoice() { diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h index be39148..6bbdfd4 100644 --- a/kaddressbook/kabcore.h +++ b/kaddressbook/kabcore.h @@ -143,4 +143,5 @@ class KABCore : public QWidget void statusMessage(QString, int time = 0 ); + void showLicence(); /** Is called whenever a contact is selected in the view. @@ -408,4 +409,5 @@ class KABCore : public QWidget KAction *mActionCategories; KAction *mActionAboutKAddressbook; + KAction *mActionLicence; KAction *mActionDeleteView; |