summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/backup/backuprestore.cpp3
-rw-r--r--noncore/settings/backup/backuprestorebase.ui204
2 files changed, 90 insertions, 117 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp
index d028379..8928cda 100644
--- a/noncore/settings/backup/backuprestore.cpp
+++ b/noncore/settings/backup/backuprestore.cpp
@@ -87,7 +87,6 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name, WFlags f
connect( restoreSource, SIGNAL( activated( int ) ), this, SLOT( sourceDirChanged( int ) ) );
connect( addLocationButton, SIGNAL( clicked() ), this, SLOT( addLocation() ) );
connect( removeLocationButton, SIGNAL( clicked() ), this, SLOT( removeLocation() ) );
- connect( saveLocationsButton, SIGNAL( clicked() ), this, SLOT( saveLocations() ) );
connect( selectLocationButton, SIGNAL( clicked() ), this, SLOT( selectLocation() ) );
//add directorys for backing up
@@ -727,6 +726,7 @@ void BackupAndRestore::addLocation()
{
(void) new QListViewItem( locationList, locationEdit->text() );
locationEdit->setText( "" );
+ saveLocations();
}
}
@@ -735,6 +735,7 @@ void BackupAndRestore::removeLocation()
if ( locationList->selectedItem() )
{
delete( locationList->selectedItem() );
+ saveLocations();
}
}
diff --git a/noncore/settings/backup/backuprestorebase.ui b/noncore/settings/backup/backuprestorebase.ui
index 6186d68..cca3dee 100644
--- a/noncore/settings/backup/backuprestorebase.ui
+++ b/noncore/settings/backup/backuprestorebase.ui
@@ -11,8 +11,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>278</width>
- <height>298</height>
+ <width>246</width>
+ <height>338</height>
</rect>
</property>
<property stdset="1">
@@ -25,16 +25,16 @@
<property>
<name>layoutSpacing</name>
</property>
- <vbox>
+ <grid>
<property stdset="1">
<name>margin</name>
- <number>0</number>
+ <number>2</number>
</property>
<property stdset="1">
<name>spacing</name>
- <number>0</number>
+ <number>2</number>
</property>
- <widget>
+ <widget row="0" column="0" >
<class>QTabWidget</class>
<property stdset="1">
<name>name</name>
@@ -65,21 +65,6 @@
<name>spacing</name>
<number>2</number>
</property>
- <widget row="0" column="0" >
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout1</cstring>
- </property>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
<widget row="1" column="1" >
<class>QComboBox</class>
<property stdset="1">
@@ -98,7 +83,7 @@
<class>QLabel</class>
<property stdset="1">
<name>name</name>
- <cstring>TextLabel1</cstring>
+ <cstring>labelDestination</cstring>
</property>
<property stdset="1">
<name>text</name>
@@ -116,6 +101,35 @@
<string>&amp;Backup</string>
</property>
</widget>
+ <widget row="2" column="0" rowspan="1" colspan="2" >
+ <class>QListView</class>
+ <column>
+ <property>
+ <name>text</name>
+ <string>Applications</string>
+ </property>
+ <property>
+ <name>clickable</name>
+ <bool>true</bool>
+ </property>
+ <property>
+ <name>resizeable</name>
+ <bool>true</bool>
+ </property>
+ </column>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>backupList</cstring>
+ </property>
+ <property stdset="1">
+ <name>allColumnsShowFocus</name>
+ <bool>true</bool>
+ </property>
+ <property stdset="1">
+ <name>rootIsDecorated</name>
+ <bool>true</bool>
+ </property>
+ </widget>
<widget row="0" column="0" rowspan="1" colspan="2" >
<class>QButtonGroup</class>
<property stdset="1">
@@ -132,31 +146,16 @@
<property>
<name>layoutSpacing</name>
</property>
- <vbox>
+ <grid>
<property stdset="1">
<name>margin</name>
- <number>4</number>
+ <number>6</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>2</number>
</property>
- <widget>
- <class>QRadioButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>cb_type_userdata</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>User Data (Configuration + PIM)</string>
- </property>
- <property stdset="1">
- <name>checked</name>
- <bool>true</bool>
- </property>
- </widget>
- <widget>
+ <widget row="1" column="0" >
<class>QRadioButton</class>
<property stdset="1">
<name>name</name>
@@ -167,34 +166,18 @@
<string>Full Backup (Root File System)</string>
</property>
</widget>
- </vbox>
- </widget>
- <widget row="2" column="0" rowspan="1" colspan="2" >
- <class>QListView</class>
- <column>
- <property>
- <name>text</name>
- <string>Applications</string>
- </property>
- <property>
- <name>clickable</name>
- <bool>true</bool>
- </property>
- <property>
- <name>resizeable</name>
- <bool>true</bool>
- </property>
- </column>
+ <widget row="0" column="0" >
+ <class>QRadioButton</class>
<property stdset="1">
<name>name</name>
- <cstring>backupList</cstring>
+ <cstring>cb_type_userdata</cstring>
</property>
<property stdset="1">
- <name>allColumnsShowFocus</name>
- <bool>true</bool>
+ <name>text</name>
+ <string>User Data (Configuration + PIM)</string>
</property>
<property stdset="1">
- <name>rootIsDecorated</name>
+ <name>checked</name>
<bool>true</bool>
</property>
</widget>
@@ -219,7 +202,7 @@
</property>
<property stdset="1">
<name>spacing</name>
- <number>4</number>
+ <number>2</number>
</property>
<widget row="0" column="1" >
<class>QComboBox</class>
@@ -243,7 +226,7 @@
<class>QLabel</class>
<property stdset="1">
<name>name</name>
- <cstring>TextLabel1_2</cstring>
+ <cstring>destinationLabel</cstring>
</property>
<property stdset="1">
<name>text</name>
@@ -297,27 +280,38 @@
</property>
<property stdset="1">
<name>spacing</name>
- <number>4</number>
+ <number>2</number>
</property>
- <widget row="1" column="0" rowspan="1" colspan="4" >
- <class>QListView</class>
- <column>
- <property>
- <name>text</name>
- <string>Locations</string>
+ <widget row="0" column="2" >
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>selectLocationButton</cstring>
</property>
- <property>
- <name>clickable</name>
- <bool>true</bool>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
</property>
- <property>
- <name>resizeable</name>
- <bool>true</bool>
+ <property stdset="1">
+ <name>maximumSize</name>
+ <size>
+ <width>20</width>
+ <height>30</height>
+ </size>
</property>
- </column>
+ <property stdset="1">
+ <name>text</name>
+ <string>...</string>
+ </property>
+ </widget>
+ <widget row="0" column="0" rowspan="1" colspan="2" >
+ <class>QLineEdit</class>
<property stdset="1">
<name>name</name>
- <cstring>locationList</cstring>
+ <cstring>locationEdit</cstring>
</property>
</widget>
<widget row="2" column="0" >
@@ -331,7 +325,7 @@
<string>Add</string>
</property>
</widget>
- <widget row="2" column="1" >
+ <widget row="2" column="1" rowspan="1" colspan="2" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
@@ -342,52 +336,30 @@
<string>Remove</string>
</property>
</widget>
- <widget row="2" column="2" rowspan="1" colspan="2" >
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>saveLocationsButton</cstring>
- </property>
- <property stdset="1">
+ <widget row="1" column="0" rowspan="1" colspan="3" >
+ <class>QListView</class>
+ <column>
+ <property>
<name>text</name>
- <string>Save</string>
- </property>
- </widget>
- <widget row="0" column="3" >
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>selectLocationButton</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
+ <string>Locations</string>
</property>
- <property stdset="1">
- <name>maximumSize</name>
- <size>
- <width>20</width>
- <height>30</height>
- </size>
+ <property>
+ <name>clickable</name>
+ <bool>true</bool>
</property>
- <property stdset="1">
- <name>text</name>
- <string>...</string>
+ <property>
+ <name>resizeable</name>
+ <bool>true</bool>
</property>
- </widget>
- <widget row="0" column="0" rowspan="1" colspan="3" >
- <class>QLineEdit</class>
+ </column>
<property stdset="1">
<name>name</name>
- <cstring>locationEdit</cstring>
+ <cstring>locationList</cstring>
</property>
</widget>
</grid>
</widget>
</widget>
- </vbox>
+ </grid>
</widget>
</UI>