qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FlowLayout Class Reference

#include <flowlayout.h>

Inheritance diagram for FlowLayout:
Inheritance graph
Collaboration diagram for FlowLayout:
Collaboration graph

Public Member Functions

 FlowLayout (QWidget *parent, int margin=-1, int hSpacing=-1, int vSpacing=-1)
 
 FlowLayout (int margin=-1, int hSpacing=-1, int vSpacing=-1)
 
 ~FlowLayout ()
 
void addItem (QLayoutItem *item)
 
int horizontalSpacing () const
 
int verticalSpacing () const
 
Qt::Orientations expandingDirections () const
 
bool hasHeightForWidth () const
 
int heightForWidth (int) const
 
int count () const
 
QLayoutItem * itemAt (int index) const
 
QSize minimumSize () const
 
void setGeometry (const QRect &rect)
 
QSize sizeHint () const
 
QLayoutItem * takeAt (int index)
 

Private Member Functions

int doLayout (const QRect &rect, bool testOnly) const
 
int smartSpacing (QStyle::PixelMetric pm) const
 

Private Attributes

QList< QLayoutItem * > itemList
 
int m_hSpace
 
int m_vSpace
 

Detailed Description

Definition at line 46 of file flowlayout.h.

Constructor & Destructor Documentation

◆ FlowLayout() [1/2]

FlowLayout::FlowLayout ( QWidget *  parent,
int  margin = -1,
int  hSpacing = -1,
int  vSpacing = -1 
)
explicit

Definition at line 44 of file flowlayout.cpp.

◆ FlowLayout() [2/2]

FlowLayout::FlowLayout ( int  margin = -1,
int  hSpacing = -1,
int  vSpacing = -1 
)
explicit

Definition at line 52 of file flowlayout.cpp.

◆ ~FlowLayout()

FlowLayout::~FlowLayout ( )

Definition at line 59 of file flowlayout.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addItem()

void FlowLayout::addItem ( QLayoutItem *  item)

Definition at line 66 of file flowlayout.cpp.

◆ count()

int FlowLayout::count ( ) const

Definition at line 87 of file flowlayout.cpp.

◆ doLayout()

int FlowLayout::doLayout ( const QRect &  rect,
bool  testOnly 
) const
private

Definition at line 142 of file flowlayout.cpp.

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

◆ expandingDirections()

Qt::Orientations FlowLayout::expandingDirections ( ) const

Definition at line 105 of file flowlayout.cpp.

◆ hasHeightForWidth()

bool FlowLayout::hasHeightForWidth ( ) const

Definition at line 110 of file flowlayout.cpp.

◆ heightForWidth()

int FlowLayout::heightForWidth ( int  width) const

Definition at line 115 of file flowlayout.cpp.

Here is the call graph for this function:

◆ horizontalSpacing()

int FlowLayout::horizontalSpacing ( ) const

Definition at line 71 of file flowlayout.cpp.

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

◆ itemAt()

QLayoutItem * FlowLayout::itemAt ( int  index) const

Definition at line 92 of file flowlayout.cpp.

◆ minimumSize()

QSize FlowLayout::minimumSize ( ) const

Definition at line 132 of file flowlayout.cpp.

Here is the caller graph for this function:

◆ setGeometry()

void FlowLayout::setGeometry ( const QRect &  rect)

Definition at line 121 of file flowlayout.cpp.

Here is the call graph for this function:

◆ sizeHint()

QSize FlowLayout::sizeHint ( ) const

Definition at line 127 of file flowlayout.cpp.

Here is the call graph for this function:

◆ smartSpacing()

int FlowLayout::smartSpacing ( QStyle::PixelMetric  pm) const
private

Definition at line 180 of file flowlayout.cpp.

Here is the caller graph for this function:

◆ takeAt()

QLayoutItem * FlowLayout::takeAt ( int  index)

Definition at line 97 of file flowlayout.cpp.

Here is the caller graph for this function:

◆ verticalSpacing()

int FlowLayout::verticalSpacing ( ) const

Definition at line 79 of file flowlayout.cpp.

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

Member Data Documentation

◆ itemList

QList<QLayoutItem*> FlowLayout::itemList
private

Definition at line 108 of file flowlayout.h.

◆ m_hSpace

int FlowLayout::m_hSpace
private

Definition at line 109 of file flowlayout.h.

◆ m_vSpace

int FlowLayout::m_vSpace
private

Definition at line 110 of file flowlayout.h.


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