File indexing completed on 2024-04-21 04:04:57

0001 /*
0002     SPDX-FileCopyrightText: 2006 Paolo Capriotti <p.capriotti@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef HIGHLIGHTANIMATION_H
0008 #define HIGHLIGHTANIMATION_H
0009 
0010 #include <QGraphicsLineItem>
0011 
0012 /**
0013  * @short Highlight animation when new lines appear.
0014  *
0015  * Created when a new line is added to the board.
0016  *
0017  * @author Paolo Capriotti <p.capriotti@gmail.com>
0018  */
0019 class HighlightAnimation : public QObject, public QGraphicsLineItem
0020 {
0021     Q_OBJECT
0022     Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)
0023 public:
0024     explicit HighlightAnimation(const QLineF &line);
0025 };
0026 
0027 #endif // HIGHLIGHTANIMATION_H