summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/locationInformation.ui
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-27 00:26:46 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-27 22:59:22 +0100
commita084ea5b261b10d336f7a474a5b57705550d8825 (patch)
treec27cc5ca6905f340a2eddd268e62d903e4fa2b78 /desktop-widgets/locationInformation.ui
parentfe69b304b2496233142d9018ab5c6a7675ea089c (diff)
downloadsubsurface-a084ea5b261b10d336f7a474a5b57705550d8825.tar.gz
locationinformation: don't update map location on typing
Currently when the user is typing new coordinates the marker on the map changes location right away. Disable that and add a 'flag' button that should be pressed instead. Also make the coordinates update when pressing Enter or when the text field loses focus. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets/locationInformation.ui')
-rw-r--r--desktop-widgets/locationInformation.ui31
1 files changed, 23 insertions, 8 deletions
diff --git a/desktop-widgets/locationInformation.ui b/desktop-widgets/locationInformation.ui
index c15c713fd..24b7977e4 100644
--- a/desktop-widgets/locationInformation.ui
+++ b/desktop-widgets/locationInformation.ui
@@ -54,20 +54,20 @@
</property>
</widget>
</item>
- <item row="7" column="2" rowspan="2" colspan="2">
+ <item row="7" column="2" rowspan="2" colspan="3">
<widget class="QPlainTextEdit" name="diveSiteNotes">
<property name="focusPolicy">
<enum>Qt::ClickFocus</enum>
</property>
</widget>
</item>
- <item row="1" column="2" colspan="2">
+ <item row="1" column="2" colspan="3">
<widget class="QLineEdit" name="diveSiteName"/>
</item>
- <item row="5" column="2" colspan="2">
+ <item row="5" column="2" colspan="3">
<widget class="QLineEdit" name="diveSiteDescription"/>
</item>
- <item row="3" column="3">
+ <item row="3" column="4">
<widget class="QToolButton" name="geoCodeButton">
<property name="toolTip">
<string>Reverse geo lookup</string>
@@ -81,7 +81,7 @@
</property>
</widget>
</item>
- <item row="0" column="0" colspan="4">
+ <item row="0" column="0" colspan="5">
<widget class="KMessageWidget" name="diveSiteMessage">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
@@ -91,7 +91,7 @@
</property>
</widget>
</item>
- <item row="9" column="0" colspan="4">
+ <item row="9" column="0" colspan="5">
<widget class="QGroupBox" name="diveSiteGroupBox">
<property name="title">
<string>Dive sites on same coordinates</string>
@@ -139,7 +139,7 @@
</property>
</widget>
</item>
- <item row="4" column="2" colspan="2">
+ <item row="4" column="2" colspan="3">
<widget class="QLabel" name="locationTags">
<property name="text">
<string/>
@@ -153,9 +153,23 @@
</property>
</widget>
</item>
- <item row="2" column="2" colspan="2">
+ <item row="2" column="2" colspan="3">
<widget class="QLineEdit" name="diveSiteCountry"/>
</item>
+ <item row="3" column="3">
+ <widget class="QToolButton" name="updateLocationButton">
+ <property name="toolTip">
+ <string>Update location on map</string>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="icon">
+ <iconset resource="../subsurface.qrc">
+ <normaloff>:/mapwidget-marker-selected</normaloff>:/mapwidget-marker-selected</iconset>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
<customwidgets>
@@ -170,6 +184,7 @@
<tabstop>diveSiteName</tabstop>
<tabstop>diveSiteCountry</tabstop>
<tabstop>diveSiteCoordinates</tabstop>
+ <tabstop>updateLocationButton</tabstop>
<tabstop>geoCodeButton</tabstop>
<tabstop>diveSiteDescription</tabstop>
<tabstop>diveSiteNotes</tabstop>