From b2f473d927bdc42129f673a0ee2f5ab65bb57f2e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 30 Jun 2014 07:19:22 -0700 Subject: 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 --- qt-ui/usersurvey.ui | 54 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 21 deletions(-) (limited to 'qt-ui/usersurvey.ui') 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 @@ 0 0 500 - 524 + 600 @@ -17,7 +17,7 @@ 40 - 490 + 560 451 32 @@ -118,7 +118,7 @@ I am downloading dives from supported dive computer - + 10 @@ -144,22 +144,15 @@ I am manually entering dives - + 10 - 270 + 300 481 101 - - <!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> - @@ -174,21 +167,40 @@ p, li { white-space: pre-wrap; } I use the Android companion app to track dive locations - + 10 - 380 + 450 481 101 - - <!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> + + + + + 10 + 270 + 471 + 20 + + + + Please type suggestions (in English) in the following box + + + + + + 10 + 420 + 471 + 20 + + + + The following information about your system will also be submitted @@ -197,7 +209,7 @@ p, li { white-space: pre-wrap; } tech planning download - import_2 + divecomputer manual companion suggestions -- cgit v1.2.3-70-g09d2