[PATCH 2/6] Set a max value for the custom text in OSTC3
Anton Lundin
glance at acc.umu.se
Mon Oct 27 12:37:06 PDT 2014
The device supports a up to 60 chars custom text. This limits the
LineEdit to that amount, so users see when they reach the max limit.
Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
qt-ui/configuredivecomputerdialog.ui | 3 +++
1 file changed, 3 insertions(+)
diff --git a/qt-ui/configuredivecomputerdialog.ui b/qt-ui/configuredivecomputerdialog.ui
index 1b3a781..17e83fd 100644
--- a/qt-ui/configuredivecomputerdialog.ui
+++ b/qt-ui/configuredivecomputerdialog.ui
@@ -264,6 +264,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
+ <property name="maxLength">
+ <number>60</number>
+ </property>
</widget>
</item>
<item row="1" column="3">
--
1.9.1
More information about the subsurface
mailing list