mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
0dd40b7a51
The access manager is only one, while we can make requests from different parts of the application, so relying on the manager finished() signal to see if something was done or not was a not very good move. The QNetworkReply is created when a get() is invocked on the AccessManager and that's unique. connect it's finished() signal instead. bonus: code cleanup. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
29 lines
437 B
C++
29 lines
437 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();
|
|
|
|
private:
|
|
Ui::UserSurvey *ui;
|
|
QString os;
|
|
};
|
|
#endif // USERSURVEY_H
|