-rw-r--r-- | kaddressbook/kabcore.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index cd833cf..b107e2d 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -1614,35 +1614,35 @@ QString KABCore::getNameByPhone( const QString &phone ) | |||
1614 | } | 1614 | } |
1615 | void KABCore::openConfigGlobalDialog() | 1615 | void KABCore::openConfigGlobalDialog() |
1616 | { | 1616 | { |
1617 | KPimPrefsGlobalDialog gc ( this ); | 1617 | KPimPrefsGlobalDialog gc ( this ); |
1618 | gc.exec(); | 1618 | gc.exec(); |
1619 | } | 1619 | } |
1620 | void KABCore::openConfigDialog() | 1620 | void KABCore::openConfigDialog() |
1621 | { | 1621 | { |
1622 | KDialogBase * ConfigureDialog = new KDialogBase ( KDialogBase::Plain , i18n("Configure KA/Pi"), KDialogBase::Default |KDialogBase::Cancel | KDialogBase::Apply | KDialogBase::Ok, KDialogBase::Ok,0, "name", true, true); | 1622 | KDialogBase * ConfigureDialog = new KDialogBase ( KDialogBase::Plain , i18n("Configure KA/Pi"), KDialogBase::Default |KDialogBase::Cancel | KDialogBase::Apply | KDialogBase::Ok, KDialogBase::Ok,0, "name", true, true); |
1623 | 1623 | ||
1624 | KCMKabConfig* kabcfg = new KCMKabConfig( ConfigureDialog , "KCMKabConfig" ); | 1624 | KCMKabConfig* kabcfg = new KCMKabConfig( ConfigureDialog , "KCMKabConfig" ); |
1625 | ConfigureDialog->setMainWidget( kabcfg ); | 1625 | ConfigureDialog->setMainWidget( kabcfg ); |
1626 | connect( ConfigureDialog, SIGNAL( applyClicked() ), | 1626 | connect( ConfigureDialog, SIGNAL( applyClicked() ), |
1627 | this, SLOT( configurationChanged() ) ); | 1627 | this, SLOT( configurationChanged() ) ); |
1628 | connect( ConfigureDialog, SIGNAL( applyClicked() ), | 1628 | connect( ConfigureDialog, SIGNAL( applyClicked() ), |
1629 | kabcfg, SLOT( save() ) ); | 1629 | kabcfg, SLOT( save() ) ); |
1630 | connect( ConfigureDialog, SIGNAL( okClicked() ), | 1630 | connect( ConfigureDialog, SIGNAL( acceptClicked() ), |
1631 | this, SLOT( configurationChanged() ) ); | 1631 | this, SLOT( configurationChanged() ) ); |
1632 | connect( ConfigureDialog, SIGNAL( okClicked() ), | 1632 | connect( ConfigureDialog, SIGNAL( acceptClicked() ), |
1633 | kabcfg, SLOT( save() ) ); | 1633 | kabcfg, SLOT( save() ) ); |
1634 | connect( ConfigureDialog, SIGNAL( defaultClicked() ), | 1634 | connect( ConfigureDialog, SIGNAL( defaultClicked() ), |
1635 | kabcfg, SLOT( defaults() ) ); | 1635 | kabcfg, SLOT( defaults() ) ); |
1636 | saveSettings(); | 1636 | saveSettings(); |
1637 | kabcfg->load(); | 1637 | kabcfg->load(); |
1638 | #ifndef DESKTOP_VERSION | 1638 | #ifndef DESKTOP_VERSION |
1639 | if ( QApplication::desktop()->height() <= 480 ) | 1639 | if ( QApplication::desktop()->height() <= 480 ) |
1640 | ConfigureDialog->hideButtons(); | 1640 | ConfigureDialog->hideButtons(); |
1641 | ConfigureDialog->showMaximized(); | 1641 | ConfigureDialog->showMaximized(); |
1642 | #endif | 1642 | #endif |
1643 | if ( ConfigureDialog->exec() ) | 1643 | if ( ConfigureDialog->exec() ) |
1644 | KMessageBox::information( this, i18n("Some changes are only\neffective after a restart!\n") ); | 1644 | KMessageBox::information( this, i18n("Some changes are only\neffective after a restart!\n") ); |
1645 | delete ConfigureDialog; | 1645 | delete ConfigureDialog; |
1646 | } | 1646 | } |
1647 | 1647 | ||
1648 | void KABCore::openLDAPDialog() | 1648 | void KABCore::openLDAPDialog() |
@@ -3417,18 +3417,18 @@ void KABCore::syncFileRequest() | |||
3417 | syncManager->slotSyncMenu( 999 ); | 3417 | syncManager->slotSyncMenu( 999 ); |
3418 | } | 3418 | } |
3419 | mAddressBook->export2File( sentSyncFile() ); | 3419 | mAddressBook->export2File( sentSyncFile() ); |
3420 | } | 3420 | } |
3421 | QString KABCore::sentSyncFile() | 3421 | QString KABCore::sentSyncFile() |
3422 | { | 3422 | { |
3423 | #ifdef DESKTOP_VERSION | 3423 | #ifdef DESKTOP_VERSION |
3424 | return locateLocal( "tmp", "copysyncab.vcf" ); | 3424 | return locateLocal( "tmp", "copysyncab.vcf" ); |
3425 | #else | 3425 | #else |
3426 | return QString( "/tmp/copysyncab.vcf" ); | 3426 | return QString( "/tmp/copysyncab.vcf" ); |
3427 | #endif | 3427 | #endif |
3428 | } | 3428 | } |
3429 | 3429 | ||
3430 | void KABCore::setCaptionBack() | 3430 | void KABCore::setCaptionBack() |
3431 | { | 3431 | { |
3432 | mMessageTimer->stop(); | 3432 | mMessageTimer->stop(); |
3433 | topLevelWidget()->setCaption( i18n("KAddressbook/Pi") ); | 3433 | topLevelWidget()->setCaption( i18n("KA/Pi") ); |
3434 | } | 3434 | } |