Diffstat (limited to 'noncore/settings/backup/backuprestore.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/backup/backuprestore.cpp | 13 |
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 | |||
@@ -8,4 +8,7 @@ | |||
8 | using namespace Opie::Core; | 8 | using namespace Opie::Core; |
9 | 9 | ||
10 | #include <opie2/ofiledialog.h> | ||
11 | using namespace Opie::Ui; | ||
12 | |||
10 | #include <qpe/qpeapplication.h> | 13 | #include <qpe/qpeapplication.h> |
11 | #include <qpe/resource.h> | 14 | #include <qpe/resource.h> |
@@ -58,4 +61,5 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name, WFlags f | |||
58 | connect( removeLocationButton, SIGNAL( clicked() ), this, SLOT( removeLocation() ) ); | 61 | connect( removeLocationButton, SIGNAL( clicked() ), this, SLOT( removeLocation() ) ); |
59 | connect( saveLocationsButton, SIGNAL( clicked() ), this, SLOT( saveLocations() ) ); | 62 | connect( saveLocationsButton, SIGNAL( clicked() ), this, SLOT( saveLocations() ) ); |
63 | connect( selectLocationButton, SIGNAL( clicked() ), this, SLOT( selectLocation() ) ); | ||
60 | 64 | ||
61 | //add directorys for backing up | 65 | //add directorys for backing up |
@@ -590,4 +594,13 @@ void BackupAndRestore::saveLocations() | |||
590 | } | 594 | } |
591 | 595 | ||
596 | void BackupAndRestore::selectLocation() | ||
597 | { | ||
598 | QString location = OFileDialog::getDirectory( OFileSelector::DIRECTORYSELECTOR ); | ||
599 | if ( !location.isEmpty() ) | ||
600 | { | ||
601 | locationEdit->setText( location ); | ||
602 | } | ||
603 | } | ||
604 | |||
592 | // backuprestore.cpp | 605 | // backuprestore.cpp |
593 | 606 | ||