#include <gridlayoutanimation.h>
Inherits QVariantAnimation.
|
| 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.
◆ GridLayoutAnimation()
| GridLayoutAnimation::GridLayoutAnimation |
( |
QGraphicsGridLayout * |
grid = nullptr, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
Constructor
- Parameters
-
| grid | Grid to be animated |
| parent | Parent QObject |
◆ ~GridLayoutAnimation()
| GridLayoutAnimation::~GridLayoutAnimation |
( |
| ) |
|
|
override |
◆ actsOnRows()
| bool GridLayoutAnimation::actsOnRows |
( |
| ) |
const |
- Returns
- true if this object acts on a row, false if it acts on a column.
◆ grid()
| QGraphicsGridLayout * GridLayoutAnimation::grid |
( |
| ) |
|
◆ index()
| int GridLayoutAnimation::index |
( |
| ) |
const |
- Returns
- the index of the row/column to be animated
◆ setActsOnRows()
| void GridLayoutAnimation::setActsOnRows |
( |
bool |
acts_on_row | ) |
|
- Parameters
-
| acts_on_row | true for this object to act on a row, false for it to act on a column. |
◆ setGrid()
| void GridLayoutAnimation::setGrid |
( |
QGraphicsGridLayout * |
grid | ) |
|
- Parameters
-
| grid | The grid to be animated |
◆ setIndex()
| void GridLayoutAnimation::setIndex |
( |
int |
index | ) |
|
- Parameters
-
| index | the index of the row/column to be animated |
◆ updateCurrentValue()
| void GridLayoutAnimation::updateCurrentValue |
( |
const QVariant & |
value | ) |
|
|
overrideprotected |
Implementation of QVariantAnimation::updateCurrentValue().
◆ grid_
| QGraphicsGridLayout* GridLayoutAnimation::grid_ |
|
private |
Grid this class will animate.
◆ index_
| int GridLayoutAnimation::index_ |
|
private |
Index of the row/column to be animated.
◆ row_
| bool GridLayoutAnimation::row_ |
|
private |
Whether we should animate a row or a column.
The documentation for this class was generated from the following files: