LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::FlowLayout Class Referencefinal

A simple flow layout implementation. More...

#include "flowlayout.h"

+ Inheritance diagram for LC::Util::FlowLayout:
+ Collaboration diagram for LC::Util::FlowLayout:

Public Member Functions

 FlowLayout (QWidget *, int=-1, int=-1, int=-1)
 
 FlowLayout (int=-1, int=-1, int=-1)
 
 ~FlowLayout () override
 
void addItem (QLayoutItem *) override
 
int horizontalSpacing () const
 
int verticalSpacing () const
 
Qt::Orientations expandingDirections () const override
 
bool hasHeightForWidth () const override
 
int heightForWidth (int) const override
 
int count () const override
 
QLayoutItemitemAt (int) const override
 
QLayoutItemtakeAt (int) override
 
QSize minimumSize () const override
 
void setGeometry (const QRect &) override
 
QSize sizeHint () const override
 

Detailed Description

A simple flow layout implementation.

Flow layout arranges child items in a dynamic wrappable row, much like QML's GridView.

Definition at line 24 of file flowlayout.h.

Constructor & Destructor Documentation

◆ FlowLayout() [1/2]

LC::Util::FlowLayout::FlowLayout ( QWidget * parent,
int margin = -1,
int hspace = -1,
int vspace = -1 )
explicit

Definition at line 14 of file flowlayout.cpp.

References LC::Util::Filter().

+ Here is the call graph for this function:

◆ FlowLayout() [2/2]

LC::Util::FlowLayout::FlowLayout ( int margin = -1,
int hspace = -1,
int vspace = -1 )
explicit

Definition at line 23 of file flowlayout.cpp.

◆ ~FlowLayout()

LC::Util::FlowLayout::~FlowLayout ( )
override

Definition at line 28 of file flowlayout.cpp.

References LC::Util::Filter().

+ Here is the call graph for this function:

Member Function Documentation

◆ addItem()

void LC::Util::FlowLayout::addItem ( QLayoutItem * item)
override

Definition at line 33 of file flowlayout.cpp.

References LC::Util::Filter().

+ Here is the call graph for this function:

◆ count()

int LC::Util::FlowLayout::count ( ) const
override

Definition at line 67 of file flowlayout.cpp.

◆ expandingDirections()

Qt::Orientations LC::Util::FlowLayout::expandingDirections ( ) const
override

Definition at line 52 of file flowlayout.cpp.

◆ hasHeightForWidth()

bool LC::Util::FlowLayout::hasHeightForWidth ( ) const
override

Definition at line 57 of file flowlayout.cpp.

◆ heightForWidth()

int LC::Util::FlowLayout::heightForWidth ( int width) const
override

Definition at line 62 of file flowlayout.cpp.

References LC::Util::Filter().

+ Here is the call graph for this function:

◆ horizontalSpacing()

int LC::Util::FlowLayout::horizontalSpacing ( ) const

Definition at line 38 of file flowlayout.cpp.

◆ itemAt()

QLayoutItem * LC::Util::FlowLayout::itemAt ( int idx) const
override

Definition at line 72 of file flowlayout.cpp.

References LC::Util::Filter().

+ Here is the call graph for this function:

◆ minimumSize()

QSize LC::Util::FlowLayout::minimumSize ( ) const
override

Definition at line 85 of file flowlayout.cpp.

References LC::Util::Filter().

Referenced by sizeHint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setGeometry()

void LC::Util::FlowLayout::setGeometry ( const QRect & rect)
override

Definition at line 100 of file flowlayout.cpp.

References LC::Util::Filter().

+ Here is the call graph for this function:

◆ sizeHint()

QSize LC::Util::FlowLayout::sizeHint ( ) const
override

Definition at line 106 of file flowlayout.cpp.

References minimumSize().

+ Here is the call graph for this function:

◆ takeAt()

QLayoutItem * LC::Util::FlowLayout::takeAt ( int idx)
override

Definition at line 77 of file flowlayout.cpp.

References LC::Util::Filter().

+ Here is the call graph for this function:

◆ verticalSpacing()

int LC::Util::FlowLayout::verticalSpacing ( ) const

Definition at line 45 of file flowlayout.cpp.


The documentation for this class was generated from the following files: