File indexing completed on 2024-04-28 04:21:26
0001 /* SPDX-FileCopyrightText: 2021 The KPhotoAlbum Development Team 0002 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #pragma once 0007 0008 #include "VideoToolBar.h" 0009 0010 namespace QtAV 0011 { 0012 class VideoPreviewWidget; 0013 class AVPlayer; 0014 } 0015 0016 namespace Viewer 0017 { 0018 0019 class QtAVVideoToolBar : public VideoToolBar 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 explicit QtAVVideoToolBar(QtAV::AVPlayer *player, QWidget *parent); 0025 void closePreview() override; 0026 0027 protected: 0028 void onTimeSliderHover(const QPoint &pos, int value) override; 0029 0030 private: 0031 void slotVideoStarted(); 0032 0033 QtAV::AVPlayer *m_player = nullptr; 0034 QtAV::VideoPreviewWidget *m_preview = nullptr; 0035 }; 0036 0037 } // namespace Viewer