summaryrefslogtreecommitdiffabout
path: root/kaddressbook/kabcore.cpp
authorzautrix <zautrix>2004-08-06 20:22:49 (UTC)
committer zautrix <zautrix>2004-08-06 20:22:49 (UTC)
commit47bd2528db547822b6df6e287e02b6e2ebf7acd8 (patch) (side-by-side diff)
treed05d831afe3c49c55ed89db6a9cb4ce9fc3a6835 /kaddressbook/kabcore.cpp
parent184e3d096e83f777cce9b919f9f9d56e5960e067 (diff)
downloadkdepimpi-47bd2528db547822b6df6e287e02b6e2ebf7acd8.zip
kdepimpi-47bd2528db547822b6df6e287e02b6e2ebf7acd8.tar.gz
kdepimpi-47bd2528db547822b6df6e287e02b6e2ebf7acd8.tar.bz2
Added licence to kapi
Diffstat (limited to 'kaddressbook/kabcore.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kabcore.cpp10
1 files changed, 8 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
@@ -1635,7 +1635,9 @@ void KABCore::initActions()
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" );
@@ -1759,7 +1761,7 @@ void KABCore::addActionsManually()
mActionCategories->plug( settingsMenu );
mActionAboutKAddressbook->plug( helpMenu );
-
+ mActionLicence->plug( helpMenu );
if (QApplication::desktop()->width() > 320 ) {
@@ -1792,6 +1794,10 @@ void KABCore::addActionsManually()
#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 )