summaryrefslogtreecommitdiff
path: root/noncore/settings/backup/backuprestore.cpp
Side-by-side diff
Diffstat (limited to 'noncore/settings/backup/backuprestore.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/backup/backuprestore.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp
index 478b22f..36b101c 100644
--- a/noncore/settings/backup/backuprestore.cpp
+++ b/noncore/settings/backup/backuprestore.cpp
@@ -9,2 +9,5 @@ using namespace Opie::Core;
+#include <opie2/ofiledialog.h>
+using namespace Opie::Ui;
+
#include <qpe/qpeapplication.h>
@@ -59,2 +62,3 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name, WFlags f
connect( saveLocationsButton, SIGNAL( clicked() ), this, SLOT( saveLocations() ) );
+ connect( selectLocationButton, SIGNAL( clicked() ), this, SLOT( selectLocation() ) );
@@ -591,2 +595,11 @@ void BackupAndRestore::saveLocations()
+void BackupAndRestore::selectLocation()
+{
+ QString location = OFileDialog::getDirectory( OFileSelector::DIRECTORYSELECTOR );
+ if ( !location.isEmpty() )
+ {
+ locationEdit->setText( location );
+ }
+}
+
// backuprestore.cpp