summaryrefslogtreecommitdiff
path: root/noncore
authorar <ar>2004-10-20 22:13:02 (UTC)
committer ar <ar>2004-10-20 22:13:02 (UTC)
commit24b27cb83dfc2a23c26e6edcda84fe26a9e9d685 (patch) (side-by-side diff)
tree74a0f718dc4199051c4e485d2d6c214a98ac6af6 /noncore
parentc0ea353593cd6beed183ee0f9b58a16a869a0308 (diff)
downloadopie-24b27cb83dfc2a23c26e6edcda84fe26a9e9d685.zip
opie-24b27cb83dfc2a23c26e6edcda84fe26a9e9d685.tar.gz
opie-24b27cb83dfc2a23c26e6edcda84fe26a9e9d685.tar.bz2
- use busy indicator when backing up and restore
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/backup/backuprestore.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp
index 36b101c..1748e8d 100644
--- a/noncore/settings/backup/backuprestore.cpp
+++ b/noncore/settings/backup/backuprestore.cpp
@@ -10,2 +10,3 @@ using namespace Opie::Core;
#include <opie2/ofiledialog.h>
+#include <opie2/owait.h>
using namespace Opie::Ui;
@@ -253,3 +254,7 @@ void BackupAndRestore::backup()
- setCaption(tr("Backup and Restore... working..."));
+ OWait *owait = new OWait();
+ Global::statusMessage( tr( "Backing up..." ) );
+ owait->show();
+ qApp->processEvents();
+
QString outputFile = backupLocations[storeToLocation->currentText()];
@@ -286,2 +291,6 @@ void BackupAndRestore::backup()
+ owait->hide();
+ delete owait;
+
+ //Error-Handling
if(r != 0)
@@ -436,3 +445,7 @@ void BackupAndRestore::restore()
}
- setCaption(tr("Backup and Restore... working..."));
+
+ OWait *owait = new OWait();
+ Global::statusMessage( tr( "Restore Backup..." ) );
+ owait->show();
+ qApp->processEvents();
@@ -469,2 +482,5 @@ void BackupAndRestore::restore()
+ owait->hide();
+ delete owait;
+
//error handling