X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fvideoareawidget.h;fp=src%2Fvideoareawidget.h;h=e40d38fa582e3d49ccfb0146f36b2a52c15e5988;hb=5ecc9c04fb173c5693bcded5191d29816304d12c;hp=3673f6913af2a3b8e8753aab0c5ac522d5f5ec33;hpb=e911bb9726db1c3e46ba365e52f7541b8f4a47d4;p=minitube diff --git a/src/videoareawidget.h b/src/videoareawidget.h index 3673f69..e40d38f 100644 --- a/src/videoareawidget.h +++ b/src/videoareawidget.h @@ -21,10 +21,15 @@ $END_LICENSE */ #ifndef VIDEOAREAWIDGET_H #define VIDEOAREAWIDGET_H -#include -#include "video.h" -#include "loadingwidget.h" -#include "playlistmodel.h" +#include +#if QT_VERSION >= 0x050000 +#include +#endif + +class Video; +class LoadingWidget; +class PlaylistModel; +class SnapshotPreview; class VideoAreaWidget : public QWidget { @@ -41,7 +46,9 @@ public: void setListModel(PlaylistModel *listModel) { this->listModel = listModel; } - // void showSnapshotPreview(QPixmap pixmap); +#ifdef APP_SNAPSHOT + void showSnapshotPreview(const QPixmap &pixmap); +#endif bool isVideoShown() { return stackedLayout->currentWidget() == videoWidget; } signals: @@ -56,17 +63,23 @@ protected: void dropEvent(QDropEvent *event); private slots: - // void hideSnapshotPreview(); +#ifdef APP_SNAPSHOT + void hideSnapshotPreview(); +#endif private: QStackedLayout *stackedLayout; QWidget *videoWidget; LoadingWidget *loadingWidget; + +#ifdef APP_SNAPSHOT + SnapshotPreview *snapshotPreview; +#endif + PlaylistModel *listModel; QLabel *messageLabel; - // QLabel *snapshotPreview; - QPoint dragPosition; + QPoint dragPosition; }; #endif // VIDEOAREAWIDGET_H