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/subsurfacewebservices.h | |
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/subsurfacewebservices.h')
-rw-r--r-- | qt-ui/subsurfacewebservices.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/subsurfacewebservices.h b/qt-ui/subsurfacewebservices.h index b54da67c7..9c13e21df 100644 --- a/qt-ui/subsurfacewebservices.h +++ b/qt-ui/subsurfacewebservices.h @@ -97,6 +97,13 @@ private: bool uploadMode; }; +class UserSurveyServices : public WebServices { + Q_OBJECT +public: + void sendSurvey(QString values); + explicit UserSurveyServices(QWidget *parent = 0, Qt::WindowFlags f = 0); +}; + #ifdef __cplusplus extern "C" { #endif |