subsurface/qt-ui/usersurvey.h
Dirk Hohndel b2f473d927 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>
2014-06-30 12:30:46 -07:00

32 lines
533 B
C++

#ifndef USERSURVEY_H
#define USERSURVEY_H
#include <QDialog>
class QNetworkAccessManager;
class QNetworkReply;
namespace Ui {
class UserSurvey;
}
class UserSurvey : public QDialog {
Q_OBJECT
public:
explicit UserSurvey(QWidget *parent = 0);
~UserSurvey();
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