summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.h
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-10-03 11:54:25 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-03 12:13:48 -0700
commit8e81d3f10087fa7ac600dcb18cfebf27716c4209 (patch)
tree3f6fc136134fe7d4f14937617c29e380e7c6e124 /qt-ui/subsurfacewebservices.h
parentf0f76056ac3982783ab3dfe94d77ba5d25e19957 (diff)
downloadsubsurface-8e81d3f10087fa7ac600dcb18cfebf27716c4209.tar.gz
Make the classes generated by uic be real members of our classes
This means we don't have to new/delete them, which is a waste of overhead. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.h')
-rw-r--r--qt-ui/subsurfacewebservices.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/qt-ui/subsurfacewebservices.h b/qt-ui/subsurfacewebservices.h
index 9e85db155..0719a8f15 100644
--- a/qt-ui/subsurfacewebservices.h
+++ b/qt-ui/subsurfacewebservices.h
@@ -5,9 +5,8 @@
#include <QNetworkReply>
#include <libxml/tree.h>
-namespace Ui{
- class SubsurfaceWebServices;
-};
+#include "ui_subsurfacewebservices.h"
+
class QAbstractButton;
class QNetworkReply;
@@ -29,10 +28,10 @@ private:
unsigned int download_dialog_parse_response(const QByteArray& length);
explicit SubsurfaceWebServices(QWidget* parent = 0, Qt::WindowFlags f = 0);
- Ui::SubsurfaceWebServices *ui;
+ Ui::SubsurfaceWebServices ui;
QNetworkReply *reply;
QNetworkAccessManager *manager;
QByteArray downloadedData;
};
-#endif \ No newline at end of file
+#endif