diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-30 07:19:22 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-30 12:30:46 -0700 |
commit | b2f473d927bdc42129f673a0ee2f5ab65bb57f2e (patch) | |
tree | 3c76ce3863f0aa85e05e68cd1b8063c1bafdfaac /qt-ui/usersurvey.ui | |
parent | bc1e9edd5d7da20e73735824b9c457b13ae87026 (diff) | |
download | subsurface-b2f473d927bdc42129f673a0ee2f5ab65bb57f2e.tar.gz |
User survey: actually collect and send the data to the backend
This switches the QTextEdit fields to QPlainTextEdit (I don't see a reason
why we should allow HTML here), no longer tries to have a default text but
instead adds labels for the two fields, connects the UI so th data is
collected and uses a bastardized WebServices subclass to send the data to
our backend.
Fixes #546
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/usersurvey.ui')
-rw-r--r-- | qt-ui/usersurvey.ui | 54 |
1 files changed, 33 insertions, 21 deletions
diff --git a/qt-ui/usersurvey.ui b/qt-ui/usersurvey.ui index 67d8d9870..386dee504 100644 --- a/qt-ui/usersurvey.ui +++ b/qt-ui/usersurvey.ui @@ -7,7 +7,7 @@ <x>0</x> <y>0</y> <width>500</width> - <height>524</height> + <height>600</height> </rect> </property> <property name="windowTitle"> @@ -17,7 +17,7 @@ <property name="geometry"> <rect> <x>40</x> - <y>490</y> + <y>560</y> <width>451</width> <height>32</height> </rect> @@ -118,7 +118,7 @@ <string>I am downloading dives from supported dive computer</string> </property> </widget> - <widget class="QCheckBox" name="import_2"> + <widget class="QCheckBox" name="divecomputer"> <property name="geometry"> <rect> <x>10</x> @@ -144,22 +144,15 @@ <string>I am manually entering dives</string> </property> </widget> - <widget class="QTextEdit" name="suggestions"> + <widget class="QPlainTextEdit" name="suggestions"> <property name="geometry"> <rect> <x>10</x> - <y>270</y> + <y>300</y> <width>481</width> <height>101</height> </rect> </property> - <property name="html"> - <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Suggestions and missing features</p></body></html></string> - </property> </widget> <widget class="QCheckBox" name="companion"> <property name="geometry"> @@ -174,21 +167,40 @@ p, li { white-space: pre-wrap; } <string>I use the Android companion app to track dive locations</string> </property> </widget> - <widget class="QTextEdit" name="system"> + <widget class="QPlainTextEdit" name="system"> <property name="geometry"> <rect> <x>10</x> - <y>380</y> + <y>450</y> <width>481</width> <height>101</height> </rect> </property> - <property name="html"> - <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></string> + </widget> + <widget class="QLabel" name="label_3"> + <property name="geometry"> + <rect> + <x>10</x> + <y>270</y> + <width>471</width> + <height>20</height> + </rect> + </property> + <property name="text"> + <string>Please type suggestions (in English) in the following box</string> + </property> + </widget> + <widget class="QLabel" name="label_4"> + <property name="geometry"> + <rect> + <x>10</x> + <y>420</y> + <width>471</width> + <height>20</height> + </rect> + </property> + <property name="text"> + <string>The following information about your system will also be submitted</string> </property> </widget> </widget> @@ -197,7 +209,7 @@ p, li { white-space: pre-wrap; } <tabstop>tech</tabstop> <tabstop>planning</tabstop> <tabstop>download</tabstop> - <tabstop>import_2</tabstop> + <tabstop>divecomputer</tabstop> <tabstop>manual</tabstop> <tabstop>companion</tabstop> <tabstop>suggestions</tabstop> |