aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/maintab.ui
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-12-28 14:14:31 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commit2bb2643ae4d4c1b6d0c32c9a18e2225eed0b5936 (patch)
tree4e0fb81b4fcf677e2efd4712cc4941c1b61f4c9a /desktop-widgets/tab-widgets/maintab.ui
parent0882ca64b0867e962b2231aed4fc097e8e5754de (diff)
downloadsubsurface-2bb2643ae4d4c1b6d0c32c9a18e2225eed0b5936.tar.gz
Desktop: create new custom TextEdit widget for notes-field
Currently, the notes field uses a QTextEdit, which doesn't send a signal if it goes out of focus. But for undo of dive-editing we don't want to create an undo object for *every* text change. Thus, create a custom TextEdit widget that derives from QTextEdit and turns the focusOutEvent into a editingFinished signal. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.ui')
-rw-r--r--desktop-widgets/tab-widgets/maintab.ui7
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.ui b/desktop-widgets/tab-widgets/maintab.ui
index 34ce65186..cc79634e6 100644
--- a/desktop-widgets/tab-widgets/maintab.ui
+++ b/desktop-widgets/tab-widgets/maintab.ui
@@ -454,7 +454,7 @@
<number>0</number>
</property>
<item>
- <widget class="QTextEdit" name="notes">
+ <widget class="TextEdit" name="notes">
<property name="readOnly">
<bool>false</bool>
</property>
@@ -601,6 +601,11 @@
<extends>QLineEdit</extends>
<header>desktop-widgets/locationinformation.h</header>
</customwidget>
+ <customwidget>
+ <class>TextEdit</class>
+ <extends>QTextEdit</extends>
+ <header>desktop-widgets/textedit.h</header>
+ </customwidget>
</customwidgets>
<resources>
<include location="../../subsurface.qrc"/>