-rw-r--r-- | kaddressbook/kaimportoldialog.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kaddressbook/kaimportoldialog.cpp b/kaddressbook/kaimportoldialog.cpp index 7bb8bd8..2f794d6 100644 --- a/kaddressbook/kaimportoldialog.cpp +++ b/kaddressbook/kaimportoldialog.cpp @@ -28,2 +28,3 @@ #include <qprogressbar.h> +#include <qprogressdialog.h> #include <qwidgetstack.h> @@ -220,4 +221,4 @@ void KAImportOLdialog::readContactData( DWORD folder ) folderItems = mf.GetItems(); - QProgressBar bar( folderItems.GetCount(),0 ); - bar.setCaption (i18n("Importing - close to abort!") ); + QProgressDialog bar( i18n("Importing contact data"),i18n("Abort"), folderItems.GetCount(),this); + bar.setCaption (i18n("Importing!") ); int h = bar.sizeHint().height() ; @@ -226,3 +227,3 @@ void KAImportOLdialog::readContactData( 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(); |