From 9edb4f3fa91b3907809375794d75a1b1a77c94a0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 6 Nov 2015 10:39:59 -0800 Subject: Move ImageDownloader out of the desktop widgets This required a bit more untangling, but with this it seems we can build subsurface-mobile again (at least on the desktop). Interesting is the removal from inside the ImageDownloader of the call to DivePictureModel::instance()->updateDivePictures() - which actually could cause some interesting recursion issues. If it turns out we did indeed need this, it needs to be re-architected. Signed-off-by: Dirk Hohndel --- desktop-widgets/divepicturewidget.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'desktop-widgets/divepicturewidget.h') diff --git a/desktop-widgets/divepicturewidget.h b/desktop-widgets/divepicturewidget.h index 54f5bb826..3dc9767f1 100644 --- a/desktop-widgets/divepicturewidget.h +++ b/desktop-widgets/divepicturewidget.h @@ -5,19 +5,6 @@ #include #include #include -#include - -class ImageDownloader : public QObject { - Q_OBJECT; -public: - ImageDownloader(struct picture *picture); - void load(); -private: - struct picture *picture; - QNetworkAccessManager manager; -private slots: - void saveImage(QNetworkReply *reply); -}; class DivePictureWidget : public QListView { Q_OBJECT -- cgit v1.2.3-70-g09d2