summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncmanager.cpp
Side-by-side diff
Diffstat (limited to 'libkdepim/ksyncmanager.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/ksyncmanager.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp
index 7319285..184cb39 100644
--- a/libkdepim/ksyncmanager.cpp
+++ b/libkdepim/ksyncmanager.cpp
@@ -67,9 +67,3 @@ KSyncManager::KSyncManager(QWidget* parent, KSyncInterface* implementation, Targ
mWriteBackInPast = 2;
- int w = 300;
- if ( QApplication::desktop()->width() < 320 )
- w = 220;
- int h = bar->sizeHint().height() ;
- int dw = QApplication::desktop()->width();
- int dh = QApplication::desktop()->height();
- bar->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h );
+
@@ -1011,2 +1005,9 @@ void KSyncManager::showProgressBar(int percentage, QString caption, int total)
{
+ int w = 300;
+ if ( QApplication::desktop()->width() < 320 )
+ w = 220;
+ int h = bar->sizeHint().height() ;
+ int dw = QApplication::desktop()->width();
+ int dh = QApplication::desktop()->height();
+ bar->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h );
bar->setCaption (caption);