diff options
author | Anton Lundin <glance@acc.umu.se> | 2015-09-12 22:37:34 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-12 14:02:12 -0700 |
commit | a42df06dbfc9d55d74ee416d14ab79a8606f34f7 (patch) | |
tree | 6f0b5bedecd6b2d4366b39af308451216b0dcf0d /qt-ui/configuredivecomputerdialog.ui | |
parent | f38f8ce4c9a04921a5835b5390b665ef74d05390 (diff) | |
download | subsurface-a42df06dbfc9d55d74ee416d14ab79a8606f34f7.tar.gz |
Lift dis- and connect out from config operations
When working with ostc's via bluetooth, they will reboot and exit
bluetooth mode when you send the disconnect command. Thats kinda
inconvenient when you would like to read your settings, change something
and write it back, you need to start bluetooth mode on your device
twice.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/configuredivecomputerdialog.ui')
-rw-r--r-- | qt-ui/configuredivecomputerdialog.ui | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/qt-ui/configuredivecomputerdialog.ui b/qt-ui/configuredivecomputerdialog.ui index a0a0a2eac..edc24e29e 100644 --- a/qt-ui/configuredivecomputerdialog.ui +++ b/qt-ui/configuredivecomputerdialog.ui @@ -30,6 +30,12 @@ <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QComboBox" name="device"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Maximum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="editable"> <bool>true</bool> </property> @@ -42,6 +48,23 @@ </property> </widget> </item> + <item> + <widget class="QPushButton" name="connectButton"> + <property name="text"> + <string>Connect</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="disconnectButton"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>Disconnect</string> + </property> + </widget> + </item> </layout> </item> </layout> @@ -50,6 +73,9 @@ <layout class="QHBoxLayout" name="horizontalLayout_2"> <item> <widget class="QPushButton" name="retrieveDetails"> + <property name="enabled"> + <bool>false</bool> + </property> <property name="text"> <string>Retrieve available details</string> </property> @@ -96,6 +122,9 @@ </item> <item> <widget class="QPushButton" name="restoreBackupButton"> + <property name="enabled"> + <bool>false</bool> + </property> <property name="text"> <string>Restore backup</string> </property> @@ -595,7 +624,7 @@ <item row="10" column="3" colspan="2"> <widget class="QPushButton" name="resetButton"> <property name="enabled"> - <bool>true</bool> + <bool>false</bool> </property> <property name="text"> <string>Reset device to default settings</string> |