From 2bb2643ae4d4c1b6d0c32c9a18e2225eed0b5936 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 28 Dec 2018 14:14:31 +0100 Subject: 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 --- desktop-widgets/tab-widgets/maintab.ui | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'desktop-widgets/tab-widgets/maintab.ui') 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 @@ 0 - + false @@ -601,6 +601,11 @@ QLineEdit
desktop-widgets/locationinformation.h
+ + TextEdit + QTextEdit +
desktop-widgets/textedit.h
+
-- cgit v1.2.3-70-g09d2