author | ar <ar> | 2004-08-14 19:24:28 (UTC) |
---|---|---|
committer | ar <ar> | 2004-08-14 19:24:28 (UTC) |
commit | 6b3277b1ff29c9fba53e62fc1b83a045b73a17af (patch) (side-by-side diff) | |
tree | 1cee073c95061330c8e0b32a44bd5f694b8193c1 /noncore/settings/backup/backuprestore.cpp | |
parent | b7e50e77e0b22b3dd0feee43b15d0152d9ca8abb (diff) | |
download | opie-6b3277b1ff29c9fba53e62fc1b83a045b73a17af.zip opie-6b3277b1ff29c9fba53e62fc1b83a045b73a17af.tar.gz opie-6b3277b1ff29c9fba53e62fc1b83a045b73a17af.tar.bz2 |
- use OFileDialog::getDirectory() to select directory in locations tab.
Diffstat (limited to 'noncore/settings/backup/backuprestore.cpp') (more/less context) (show 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 @@ -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 |