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.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qt-ui/usersurvey.h') diff --git a/qt-ui/usersurvey.h b/qt-ui/usersurvey.h index e1663c7e0..b9221852b 100644 --- a/qt-ui/usersurvey.h +++ b/qt-ui/usersurvey.h @@ -2,6 +2,8 @@ #define USERSURVEY_H #include +class QNetworkAccessManager; +class QNetworkReply; namespace Ui { class UserSurvey; @@ -18,8 +20,13 @@ private slots: void on_buttonBox_accepted(); void on_buttonBox_rejected(); + void requestReceived(QNetworkReply *reply); private: Ui::UserSurvey *ui; + QString os; + QString checkboxes; + QString suggestions; + QNetworkAccessManager *manager; }; #endif // USERSURVEY_H -- cgit v1.2.3-70-g09d2