author | zautrix <zautrix> | 2005-06-29 21:43:21 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-29 21:43:21 (UTC) |
commit | 54dd512d3980381c2b02263462db03ae7c5a0264 (patch) (unidiff) | |
tree | 82a31315a85ad5e0a95ef37274fa96f7c4a88dfa /korganizer | |
parent | 7ccfe9b674bd5cc52eab708c2e7dfb02c3328deb (diff) | |
download | kdepimpi-54dd512d3980381c2b02263462db03ae7c5a0264.zip kdepimpi-54dd512d3980381c2b02263462db03ae7c5a0264.tar.gz kdepimpi-54dd512d3980381c2b02263462db03ae7c5a0264.tar.bz2 |
fixxx
-rw-r--r-- | korganizer/koimportoldialog.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/korganizer/koimportoldialog.cpp b/korganizer/koimportoldialog.cpp index 7aa6076..2af436c 100644 --- a/korganizer/koimportoldialog.cpp +++ b/korganizer/koimportoldialog.cpp | |||
@@ -27,4 +27,5 @@ | |||
27 | #include <qlayout.h> | 27 | #include <qlayout.h> |
28 | #include <qprogressbar.h> | 28 | #include <qprogressbar.h> |
29 | #include <qprogressdialog.h> | ||
29 | #include <qwidgetstack.h> | 30 | #include <qwidgetstack.h> |
30 | #include <qdatetime.h> | 31 | #include <qdatetime.h> |
@@ -212,11 +213,11 @@ void KOImportOLdialog::readCalendarData( DWORD folder ) | |||
212 | int i; | 213 | int i; |
213 | folderItems = mf.GetItems(); | 214 | folderItems = mf.GetItems(); |
214 | QProgressBar bar( folderItems.GetCount(),0 ); | 215 | QProgressDialog bar( i18n("Importing calendar data"),i18n("Abort"), folderItems.GetCount(),this ); |
215 | bar.setCaption (i18n("Importing - close to abort!") ); | 216 | bar.setCaption (i18n("Importing!") ); |
216 | int h = bar.sizeHint().height() ; | 217 | int h = bar.sizeHint().height() ; |
217 | int w = 300; | 218 | int w = 300; |
218 | int dw = QApplication::desktop()->width(); | 219 | int dw = QApplication::desktop()->width(); |
219 | int dh = QApplication::desktop()->height(); | 220 | int dh = QApplication::desktop()->height(); |
220 | bar.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); | 221 | //bar.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); |
221 | bar.show(); | 222 | bar.show(); |
222 | for(i=1; i <= folderItems.GetCount(); ++i) | 223 | for(i=1; i <= folderItems.GetCount(); ++i) |
@@ -226,4 +227,5 @@ void KOImportOLdialog::readCalendarData( DWORD folder ) | |||
226 | return ; | 227 | return ; |
227 | bar.setProgress( i ); | 228 | bar.setProgress( i ); |
229 | bar.raise(); | ||
228 | indx = (long)i; | 230 | indx = (long)i; |
229 | itm = folderItems.Item(indx.Detach()); | 231 | itm = folderItems.Item(indx.Detach()); |