author | zautrix <zautrix> | 2004-10-06 08:41:05 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-06 08:41:05 (UTC) |
commit | 641d3327a51405f7ed995bb5c58d0207de7b5ca2 (patch) (side-by-side diff) | |
tree | 97526f04afd9d3df6244a64bb2e7f91a1c72d6ae | |
parent | 8e5089d2f2011e38d811ae0fc6b6d4edaeaf89b8 (diff) | |
download | kdepimpi-641d3327a51405f7ed995bb5c58d0207de7b5ca2.zip kdepimpi-641d3327a51405f7ed995bb5c58d0207de7b5ca2.tar.gz kdepimpi-641d3327a51405f7ed995bb5c58d0207de7b5ca2.tar.bz2 |
fixes in export phone dialog
-rw-r--r-- | korganizer/mainwindow.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index ef73a78..6a9a2f1 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -79,8 +79,9 @@ class KOex2phonePrefs : public QDialog QVBoxLayout* lay = new QVBoxLayout( this ); lay->setSpacing( 3 ); lay->setMargin( 3 ); - - lay->addWidget(new QLabel( i18n("Please read phone sync howto to\nknow more about the connection settings."), this ) ); + QLabel *lab; + lay->addWidget(lab = new QLabel( i18n("Please read Help-Sync Howto\nto know what settings to use."), this ) ); + lab->setAlignment (AlignHCenter ); QHBox* temphb; temphb = new QHBox( this ); new QLabel( i18n("I/O device: "), temphb ); @@ -102,13 +103,15 @@ class KOex2phonePrefs : public QDialog mWriteBackFutureWeeks= new QSpinBox(1,104, 1, temphb); mWriteBackFutureWeeks->setValue( 8 ); lay->addWidget( temphb ); - QPushButton * ok = new QPushButton( i18n("Export!"), this ); + lay->addWidget(lab = new QLabel( i18n("NOTE: This will remove all old\n todo/calendar data on phone!"), this ) ); + lab->setAlignment (AlignHCenter ); + QPushButton * ok = new QPushButton( i18n("Export to mobile phone!"), this ); lay->addWidget( ok ); QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); lay->addWidget( cancel ); connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); - resize( 220, 220 ); + resize( 220, 240 ); } @@ -1157,6 +1160,10 @@ void MainWindow::exportToPhone( int mode ) ex2phone.mPhoneConnection->setText( KOPrefs::instance()->mEx2PhoneConnection ); ex2phone.mPhoneDevice->setText( KOPrefs::instance()->mEx2PhoneDevice ); ex2phone.mPhoneModel->setText( KOPrefs::instance()->mEx2PhoneModel ); + if ( mode == 1 ) + ex2phone.setCaption(i18n("Export complete calendar")); + if ( mode == 2 ) + ex2phone.setCaption(i18n("Export filtered calendar")); if ( !ex2phone.exec() ) { return; |