X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fvideosourcewidget.cpp;h=2e4adf7613ad8f28615eddb3c0241f2d49a29c61;hb=fe9d17324e88a65d4f28afccf21857c5a5e60649;hp=ce1a92fc498b143b56a1de64638bfc74df9c1e26;hpb=29f9a13b38a0547b70236d24300668385e1dbf6e;p=minitube
diff --git a/src/videosourcewidget.cpp b/src/videosourcewidget.cpp
index ce1a92f..2e4adf7 100644
--- a/src/videosourcewidget.cpp
+++ b/src/videosourcewidget.cpp
@@ -19,25 +19,21 @@ along with Minitube. If not, see .
$END_LICENSE */
#include "videosourcewidget.h"
-#include "videosource.h"
-#include "video.h"
#include "fontutils.h"
+#include "http.h"
+#include "httputils.h"
#include "iconutils.h"
-#include "networkaccess.h"
-
-namespace The {
-NetworkAccess* http();
-}
+#include "variantpromise.h"
+#include "video.h"
+#include "videosource.h"
VideoSourceWidget::VideoSourceWidget(VideoSource *videoSource, QWidget *parent)
: GridWidget(parent),
videoSource(videoSource),
lastPixelRatio(0) {
-
+ videoSource->setParent(this);
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
-
loadPreview();
-
connect(this, SIGNAL(activated()), SLOT(activate()));
}
@@ -45,17 +41,23 @@ void VideoSourceWidget::activate() {
emit activated(videoSource);
}
-void VideoSourceWidget::previewVideo(const QList