|
QElectroTech
0.70
|
#include <gridlayoutanimation.h>
Public Member Functions | |
| GridLayoutAnimation (QGraphicsGridLayout *=nullptr, QObject *=nullptr) | |
| ~GridLayoutAnimation () override | |
| QGraphicsGridLayout * | grid () |
| void | setGrid (QGraphicsGridLayout *) |
| int | index () const |
| void | setIndex (int) |
| bool | actsOnRows () const |
| void | setActsOnRows (bool) |
Protected Member Functions | |
| void | updateCurrentValue (const QVariant &) override |
Private Attributes | |
| QGraphicsGridLayout * | grid_ |
| Grid this class will animate. More... | |
| bool | row_ |
| Whether we should animate a row or a column. More... | |
| int | index_ |
| Index of the row/column to be animated. More... | |
This class allows animating a dimension change for a QGraphicsGridLayout row or column.
Definition at line 26 of file gridlayoutanimation.h.
| GridLayoutAnimation::GridLayoutAnimation | ( | QGraphicsGridLayout * | grid = nullptr, |
| QObject * | parent = nullptr |
||
| ) |
Constructor
| grid | Grid to be animated |
| parent | Parent QObject |
Definition at line 25 of file gridlayoutanimation.cpp.
|
override |
Destructor
Definition at line 34 of file gridlayoutanimation.cpp.
| bool GridLayoutAnimation::actsOnRows | ( | ) | const |
Definition at line 68 of file gridlayoutanimation.cpp.
References row_.
| QGraphicsGridLayout * GridLayoutAnimation::grid | ( | ) |
Definition at line 40 of file gridlayoutanimation.cpp.
References grid_.
Referenced by setGrid().
| int GridLayoutAnimation::index | ( | ) | const |
Definition at line 54 of file gridlayoutanimation.cpp.
References index_.
Referenced by setIndex().
| void GridLayoutAnimation::setActsOnRows | ( | bool | acts_on_row | ) |
| acts_on_row | true for this object to act on a row, false for it to act on a column. |
Definition at line 76 of file gridlayoutanimation.cpp.
References row_.
| void GridLayoutAnimation::setGrid | ( | QGraphicsGridLayout * | grid | ) |
| grid | The grid to be animated |
Definition at line 47 of file gridlayoutanimation.cpp.
| void GridLayoutAnimation::setIndex | ( | int | index | ) |
| index | the index of the row/column to be animated |
Definition at line 61 of file gridlayoutanimation.cpp.
|
overrideprotected |
Implementation of QVariantAnimation::updateCurrentValue().
Definition at line 83 of file gridlayoutanimation.cpp.
|
private |
Grid this class will animate.
Definition at line 46 of file gridlayoutanimation.h.
Referenced by grid(), setGrid(), and updateCurrentValue().
|
private |
Index of the row/column to be animated.
Definition at line 48 of file gridlayoutanimation.h.
Referenced by index(), setIndex(), and updateCurrentValue().
|
private |
Whether we should animate a row or a column.
Definition at line 47 of file gridlayoutanimation.h.
Referenced by actsOnRows(), setActsOnRows(), and updateCurrentValue().
1.8.15