mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
b2f473d927
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>
32 lines
533 B
C++
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
|