-rw-r--r-- | noncore/settings/backup/backup.pro | 2 | ||||
-rw-r--r-- | noncore/settings/backup/backuprestore.cpp | 13 | ||||
-rw-r--r-- | noncore/settings/backup/backuprestore.h | 1 | ||||
-rw-r--r-- | noncore/settings/backup/backuprestorebase.ui | 59 | ||||
-rw-r--r-- | noncore/settings/backup/config.in | 2 |
5 files changed, 49 insertions, 28 deletions
diff --git a/noncore/settings/backup/backup.pro b/noncore/settings/backup/backup.pro index 2adb428..390c599 100644 --- a/noncore/settings/backup/backup.pro +++ b/noncore/settings/backup/backup.pro | |||
@@ -5,3 +5,3 @@ INCLUDEPATH += $(OPIEDIR)/include | |||
5 | DEPENDPATH+= $(OPIEDIR)/include | 5 | DEPENDPATH+= $(OPIEDIR)/include |
6 | LIBS += -lqpe -lopiecore2 | 6 | LIBS += -lqpe -lopiecore2 -lopieui2 |
7 | INTERFACES= backuprestorebase.ui errordialog.ui | 7 | INTERFACES= backuprestorebase.ui errordialog.ui |
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; | |||
9 | 9 | ||
10 | #include <opie2/ofiledialog.h> | ||
11 | using namespace Opie::Ui; | ||
12 | |||
10 | #include <qpe/qpeapplication.h> | 13 | #include <qpe/qpeapplication.h> |
@@ -59,2 +62,3 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name, WFlags f | |||
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 | ||
@@ -591,2 +595,11 @@ void BackupAndRestore::saveLocations() | |||
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 |
diff --git a/noncore/settings/backup/backuprestore.h b/noncore/settings/backup/backuprestore.h index caf6243..332123a 100644 --- a/noncore/settings/backup/backuprestore.h +++ b/noncore/settings/backup/backuprestore.h | |||
@@ -34,2 +34,3 @@ private slots: | |||
34 | void saveLocations(); | 34 | void saveLocations(); |
35 | void selectLocation(); | ||
35 | 36 | ||
diff --git a/noncore/settings/backup/backuprestorebase.ui b/noncore/settings/backup/backuprestorebase.ui index b4624bb..b464556 100644 --- a/noncore/settings/backup/backuprestorebase.ui +++ b/noncore/settings/backup/backuprestorebase.ui | |||
@@ -13,3 +13,3 @@ | |||
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>290</width> | 14 | <width>282</width> |
15 | <height>243</height> | 15 | <height>243</height> |
@@ -224,27 +224,2 @@ | |||
224 | </property> | 224 | </property> |
225 | <widget row="0" column="0" rowspan="1" colspan="3" > | ||
226 | <class>QLineEdit</class> | ||
227 | <property stdset="1"> | ||
228 | <name>name</name> | ||
229 | <cstring>locationEdit</cstring> | ||
230 | </property> | ||
231 | </widget> | ||
232 | <widget row="0" column="3" > | ||
233 | <class>QToolButton</class> | ||
234 | <property stdset="1"> | ||
235 | <name>name</name> | ||
236 | <cstring>locationSelectBtn</cstring> | ||
237 | </property> | ||
238 | <property stdset="1"> | ||
239 | <name>maximumSize</name> | ||
240 | <size> | ||
241 | <width>20</width> | ||
242 | <height>30</height> | ||
243 | </size> | ||
244 | </property> | ||
245 | <property stdset="1"> | ||
246 | <name>text</name> | ||
247 | <string>...</string> | ||
248 | </property> | ||
249 | </widget> | ||
250 | <widget row="1" column="0" rowspan="1" colspan="4" > | 225 | <widget row="1" column="0" rowspan="1" colspan="4" > |
@@ -303,2 +278,34 @@ | |||
303 | </widget> | 278 | </widget> |
279 | <widget row="0" column="3" > | ||
280 | <class>QPushButton</class> | ||
281 | <property stdset="1"> | ||
282 | <name>name</name> | ||
283 | <cstring>selectLocationButton</cstring> | ||
284 | </property> | ||
285 | <property stdset="1"> | ||
286 | <name>sizePolicy</name> | ||
287 | <sizepolicy> | ||
288 | <hsizetype>0</hsizetype> | ||
289 | <vsizetype>0</vsizetype> | ||
290 | </sizepolicy> | ||
291 | </property> | ||
292 | <property stdset="1"> | ||
293 | <name>maximumSize</name> | ||
294 | <size> | ||
295 | <width>20</width> | ||
296 | <height>30</height> | ||
297 | </size> | ||
298 | </property> | ||
299 | <property stdset="1"> | ||
300 | <name>text</name> | ||
301 | <string>...</string> | ||
302 | </property> | ||
303 | </widget> | ||
304 | <widget row="0" column="0" rowspan="1" colspan="3" > | ||
305 | <class>QLineEdit</class> | ||
306 | <property stdset="1"> | ||
307 | <name>name</name> | ||
308 | <cstring>locationEdit</cstring> | ||
309 | </property> | ||
310 | </widget> | ||
304 | </grid> | 311 | </grid> |
diff --git a/noncore/settings/backup/config.in b/noncore/settings/backup/config.in index 27a5408..fddde4b 100644 --- a/noncore/settings/backup/config.in +++ b/noncore/settings/backup/config.in | |||
@@ -3,2 +3,2 @@ | |||
3 | default "y" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE | 4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBOPIE2UI |