mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
bc1e9edd5d
commit
b2f473d927
5 changed files with 122 additions and 28 deletions
|
|
@ -2,6 +2,8 @@
|
|||
#define USERSURVEY_H
|
||||
|
||||
#include <QDialog>
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue