author | zautrix <zautrix> | 2005-02-09 13:30:49 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-09 13:30:49 (UTC) |
commit | 22d5db839c9741cb2e988e84bbb367617934ebd9 (patch) (side-by-side diff) | |
tree | 3baa20d09d274afa4c9849a9ec4213699f750cf4 /libkdepim/ksyncmanager.cpp | |
parent | c3dd5bfd446b893a8b39ddec425a6cf8deff2261 (diff) | |
download | kdepimpi-22d5db839c9741cb2e988e84bbb367617934ebd9.zip kdepimpi-22d5db839c9741cb2e988e84bbb367617934ebd9.tar.gz kdepimpi-22d5db839c9741cb2e988e84bbb367617934ebd9.tar.bz2 |
fifi
-rw-r--r-- | libkdepim/ksyncmanager.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp index 1f5f4c7..9177f63 100644 --- a/libkdepim/ksyncmanager.cpp +++ b/libkdepim/ksyncmanager.cpp @@ -348,54 +348,59 @@ void KSyncManager::enableQuick( bool ask ) QLineEdit lepw ( &dia ); lepw.setText( mPrefs->mPassiveSyncPw ); QLabel label2 ( i18n("Password to enable\naccess from remote:"), &dia ); lay.addWidget( &label2); lay.addWidget( &lepw); QCheckBox autostart(i18n("Automatically start\nat application startup"), &dia ); lay.addWidget( &autostart); autostart.setChecked( mPrefs->mPassiveSyncAutoStart ); #ifdef DESKTOP_VERSION #ifdef _WIN32_ QCheckBox syncdesktop( i18n("Automatically sync with Outlook\nwhen receiving sync request"),&dia ); syncdesktop.hide();// not implemented! #else QCheckBox syncdesktop( i18n("Automatically sync with KDE-Desktop\nwhen receiving sync request"),&dia ); #endif lay.addWidget( &syncdesktop); #else mPrefs->mPassiveSyncWithDesktop = false; QCheckBox syncdesktop( i18n("Automatically sync\nwith KDE-Desktop"),&dia ); syncdesktop.hide(); #endif syncdesktop.setChecked( mPrefs->mPassiveSyncWithDesktop ); - dia.setFixedSize( 230,120 ); - dia.setCaption( i18n("Enter port for Pi-Sync") ); QPushButton pb ( "OK", &dia); lay.addWidget( &pb ); connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) ); + dia.resize( 230,120 ); + dia.setCaption( i18n("Enter port for Pi-Sync") ); dia.show(); +#ifndef DESKTOP_VERSION + int dw = QApplication::desktop()->width(); + int dh = QApplication::desktop()->height(); + dia.move( (dw-dia.width())/2, (dh - dia.height() )/2 ); +#endif if ( ! dia.exec() ) return; dia.hide(); qApp->processEvents(); if ( mPrefs->mPassiveSyncPw != lepw.text() ) { changed = true; mPrefs->mPassiveSyncPw = lepw.text(); } if ( mPrefs->mPassiveSyncPort != lab.text() ) { mPrefs->mPassiveSyncPort = lab.text(); changed = true; } autoStart = autostart.isChecked(); if (mPrefs->mPassiveSyncWithDesktop != syncdesktop.isChecked() ) { changed = true; mPrefs->mPassiveSyncWithDesktop = syncdesktop.isChecked(); } } else autoStart = mPrefs->mPassiveSyncAutoStart; if ( autoStart != mPrefs->mPassiveSyncAutoStart ) changed = true; bool ok; mPrefs->mPassiveSyncAutoStart = false; |