-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 | |||
79 | QVBoxLayout* lay = new QVBoxLayout( this ); | 79 | QVBoxLayout* lay = new QVBoxLayout( this ); |
80 | lay->setSpacing( 3 ); | 80 | lay->setSpacing( 3 ); |
81 | lay->setMargin( 3 ); | 81 | lay->setMargin( 3 ); |
82 | 82 | QLabel *lab; | |
83 | lay->addWidget(new QLabel( i18n("Please read phone sync howto to\nknow more about the connection settings."), this ) ); | 83 | lay->addWidget(lab = new QLabel( i18n("Please read Help-Sync Howto\nto know what settings to use."), this ) ); |
84 | lab->setAlignment (AlignHCenter ); | ||
84 | QHBox* temphb; | 85 | QHBox* temphb; |
85 | temphb = new QHBox( this ); | 86 | temphb = new QHBox( this ); |
86 | new QLabel( i18n("I/O device: "), temphb ); | 87 | new QLabel( i18n("I/O device: "), temphb ); |
@@ -102,13 +103,15 @@ class KOex2phonePrefs : public QDialog | |||
102 | mWriteBackFutureWeeks= new QSpinBox(1,104, 1, temphb); | 103 | mWriteBackFutureWeeks= new QSpinBox(1,104, 1, temphb); |
103 | mWriteBackFutureWeeks->setValue( 8 ); | 104 | mWriteBackFutureWeeks->setValue( 8 ); |
104 | lay->addWidget( temphb ); | 105 | lay->addWidget( temphb ); |
105 | QPushButton * ok = new QPushButton( i18n("Export!"), this ); | 106 | lay->addWidget(lab = new QLabel( i18n("NOTE: This will remove all old\n todo/calendar data on phone!"), this ) ); |
107 | lab->setAlignment (AlignHCenter ); | ||
108 | QPushButton * ok = new QPushButton( i18n("Export to mobile phone!"), this ); | ||
106 | lay->addWidget( ok ); | 109 | lay->addWidget( ok ); |
107 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); | 110 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); |
108 | lay->addWidget( cancel ); | 111 | lay->addWidget( cancel ); |
109 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); | 112 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); |
110 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | 113 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); |
111 | resize( 220, 220 ); | 114 | resize( 220, 240 ); |
112 | 115 | ||
113 | } | 116 | } |
114 | 117 | ||
@@ -1157,6 +1160,10 @@ void MainWindow::exportToPhone( int mode ) | |||
1157 | ex2phone.mPhoneConnection->setText( KOPrefs::instance()->mEx2PhoneConnection ); | 1160 | ex2phone.mPhoneConnection->setText( KOPrefs::instance()->mEx2PhoneConnection ); |
1158 | ex2phone.mPhoneDevice->setText( KOPrefs::instance()->mEx2PhoneDevice ); | 1161 | ex2phone.mPhoneDevice->setText( KOPrefs::instance()->mEx2PhoneDevice ); |
1159 | ex2phone.mPhoneModel->setText( KOPrefs::instance()->mEx2PhoneModel ); | 1162 | ex2phone.mPhoneModel->setText( KOPrefs::instance()->mEx2PhoneModel ); |
1163 | if ( mode == 1 ) | ||
1164 | ex2phone.setCaption(i18n("Export complete calendar")); | ||
1165 | if ( mode == 2 ) | ||
1166 | ex2phone.setCaption(i18n("Export filtered calendar")); | ||
1160 | 1167 | ||
1161 | if ( !ex2phone.exec() ) { | 1168 | if ( !ex2phone.exec() ) { |
1162 | return; | 1169 | return; |