DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dpicturesequenceview_p.h
1// SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DPICTURESEQUENCEVIEW_P_H
6#define DPICTURESEQUENCEVIEW_P_H
7
8#include <dpicturesequenceview.h>
9
10#include <DObjectPrivate>
11
12#include <QList>
13#include <QGraphicsScene>
14#include <QTimer>
15
16DWIDGET_BEGIN_NAMESPACE
17
18class DPictureSequenceViewPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
19{
20 D_DECLARE_PUBLIC(DPictureSequenceView)
21
22public:
25
26 void init();
27 void play();
28
29 QPixmap loadPixmap(const QString &path);
30
31public:
32 void _q_refreshPicture();
33
34public:
35 int lastItemPos = 0;
36 bool singleShot = false;
37
38 QGraphicsScene *scene;
39 QTimer *refreshTimer;
40 QList<QGraphicsPixmapItem*> pictureItemList;
41};
42
43DWIDGET_END_NAMESPACE
44
45#endif // DPICTURESEQUENCEVIEW_P_H
46
Definition dpicturesequenceview_p.h:19
DPictureSequenceView draw a serial of picture as movie. It trigger picture update by an timer.
Definition dpicturesequenceview.h:19