QElectroTech  0.8-dev
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
GridLayoutAnimation Class Reference

#include <gridlayoutanimation.h>

Inherits QVariantAnimation.

Collaboration diagram for GridLayoutAnimation:
Collaboration graph

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...
 

Detailed Description

This class allows animating a dimension change for a QGraphicsGridLayout row or column.

Constructor & Destructor Documentation

◆ GridLayoutAnimation()

GridLayoutAnimation::GridLayoutAnimation ( QGraphicsGridLayout *  grid = nullptr,
QObject *  parent = nullptr 
)

Constructor

Parameters
gridGrid to be animated
parentParent QObject

◆ ~GridLayoutAnimation()

GridLayoutAnimation::~GridLayoutAnimation ( )
override

Destructor

Member Function Documentation

◆ 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 ( )
Returns
the animated grid
Here is the caller graph for this function:

◆ index()

int GridLayoutAnimation::index ( ) const
Returns
the index of the row/column to be animated
Here is the caller graph for this function:

◆ setActsOnRows()

void GridLayoutAnimation::setActsOnRows ( bool  acts_on_row)
Parameters
acts_on_rowtrue for this object to act on a row, false for it to act on a column.

◆ setGrid()

void GridLayoutAnimation::setGrid ( QGraphicsGridLayout *  grid)
Parameters
gridThe grid to be animated
Here is the call graph for this function:

◆ setIndex()

void GridLayoutAnimation::setIndex ( int  index)
Parameters
indexthe index of the row/column to be animated
Here is the call graph for this function:

◆ updateCurrentValue()

void GridLayoutAnimation::updateCurrentValue ( const QVariant &  value)
overrideprotected

Implementation of QVariantAnimation::updateCurrentValue().

Member Data Documentation

◆ 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: