-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 @@ -28,2 +28,3 @@ #include <qprogressbar.h> +#include <qprogressdialog.h> #include <qwidgetstack.h> @@ -213,4 +214,4 @@ void KOImportOLdialog::readCalendarData( DWORD folder ) folderItems = mf.GetItems(); - QProgressBar bar( folderItems.GetCount(),0 ); - bar.setCaption (i18n("Importing - close to abort!") ); + QProgressDialog bar( i18n("Importing calendar data"),i18n("Abort"), folderItems.GetCount(),this ); + bar.setCaption (i18n("Importing!") ); int h = bar.sizeHint().height() ; @@ -219,3 +220,3 @@ void KOImportOLdialog::readCalendarData( DWORD folder ) int dh = QApplication::desktop()->height(); - bar.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); + //bar.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); bar.show(); @@ -227,2 +228,3 @@ void KOImportOLdialog::readCalendarData( DWORD folder ) bar.setProgress( i ); + bar.raise(); indx = (long)i; |