PulseView  unreleased development snapshot
A Qt-based sigrok GUI
FlowLayout Class Reference

#include <flowlayout.hpp>

Inheritance diagram for FlowLayout:
Collaboration diagram for FlowLayout:

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

QWidget * m_parent
 
QList< QLayoutItem * > itemList
 
int m_hSpace
 
int m_vSpace
 

Detailed Description

Definition at line 49 of file flowlayout.hpp.

Constructor & Destructor Documentation

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

Definition at line 45 of file flowlayout.cpp.

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

Definition at line 54 of file flowlayout.cpp.

FlowLayout::~FlowLayout ( )

Definition at line 62 of file flowlayout.cpp.

Here is the call graph for this function:

Member Function Documentation

void FlowLayout::addItem ( QLayoutItem *  item)

Definition at line 69 of file flowlayout.cpp.

int FlowLayout::count ( ) const

Definition at line 90 of file flowlayout.cpp.

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

Definition at line 160 of file flowlayout.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Qt::Orientations FlowLayout::expandingDirections ( ) const

Definition at line 108 of file flowlayout.cpp.

bool FlowLayout::hasHeightForWidth ( ) const

Definition at line 113 of file flowlayout.cpp.

int FlowLayout::heightForWidth ( int  width) const

Definition at line 118 of file flowlayout.cpp.

Here is the call graph for this function:

int FlowLayout::horizontalSpacing ( ) const

Definition at line 74 of file flowlayout.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QLayoutItem * FlowLayout::itemAt ( int  index) const

Definition at line 95 of file flowlayout.cpp.

QSize FlowLayout::minimumSize ( ) const

Definition at line 135 of file flowlayout.cpp.

Here is the caller graph for this function:

void FlowLayout::setGeometry ( const QRect &  rect)

Definition at line 124 of file flowlayout.cpp.

Here is the call graph for this function:

QSize FlowLayout::sizeHint ( ) const

Definition at line 130 of file flowlayout.cpp.

Here is the call graph for this function:

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

Definition at line 206 of file flowlayout.cpp.

Here is the caller graph for this function:

QLayoutItem * FlowLayout::takeAt ( int  index)

Definition at line 100 of file flowlayout.cpp.

Here is the caller graph for this function:

int FlowLayout::verticalSpacing ( ) const

Definition at line 82 of file flowlayout.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

QList<QLayoutItem*> FlowLayout::itemList
private

Definition at line 74 of file flowlayout.hpp.

int FlowLayout::m_hSpace
private

Definition at line 75 of file flowlayout.hpp.

QWidget* FlowLayout::m_parent
private

Definition at line 73 of file flowlayout.hpp.

int FlowLayout::m_vSpace
private

Definition at line 75 of file flowlayout.hpp.


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