A Layout that lays out its children in a grid, flowing left to right, top to bottom. More...
#include <klfguiutil.h>
Public Member Functions | |
KLFGridFlowLayout (int columns, QWidget *parent) | |
virtual | ~KLFGridFlowLayout () |
virtual int | ncolumns () const |
virtual void | insertGridFlowWidget (QWidget *w, Qt::Alignment align=0) |
void | clearAll () |
![]() | |
QGridLayout (QWidget *parent) | |
QGridLayout () | |
addItem (QLayoutItem *item, int row, int column, int rowSpan=1, int columnSpan=1, Qt::Alignment alignment=0) | |
addLayout (QLayout *layout, int row, int column, Qt::Alignment alignment=0) | |
addLayout (QLayout *layout, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment=0) | |
addWidget (QWidget *widget, int row, int column, Qt::Alignment alignment=0) | |
addWidget (QWidget *widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment=0) | |
cellRect (int row, int column) | |
columnCount () | |
columnMinimumWidth (int column) | |
columnStretch (int column) | |
getItemPosition (int index, int *row, int *column, int *rowSpan, int *columnSpan) | |
Corner QGridLayout::originCorner() | |
rowCount () | |
rowMinimumHeight (int row) | |
rowStretch (int row) | |
setColumnMinimumWidth (int column, int minSize) | |
setColumnStretch (int column, int stretch) | |
setOriginCorner (Qt::Corner corner) | |
setRowMinimumHeight (int row, int minSize) | |
setRowStretch (int row, int stretch) | |
setSpacing (int spacing) | |
spacing () | |
QGridLayout (QWidget *parent, int nRows, int nCols=1, int margin=0, int space=-1, const char *name=0) | |
QGridLayout (int nRows, int nCols=1, int spacing=-1, const char *name=0) | |
QGridLayout (QLayout *parentLayout, int nRows=1, int nCols=1, int spacing=-1, const char *name=0) | |
addColSpacing (int col, int minsize) | |
addMultiCell (QLayoutItem *l, int fromRow, int toRow, int fromCol, int toCol, Qt::Alignment align=0) | |
addMultiCellLayout (QLayout *layout, int fromRow, int toRow, int fromCol, int toCol, Qt::Alignment align=0) | |
addMultiCellWidget (QWidget *widget, int fromRow, int toRow, int fromCol, int toCol, Qt::Alignment align=0) | |
addRowSpacing (int row, int minsize) | |
cellGeometry (int row, int column) | |
colSpacing (int col) | |
colStretch (int col) | |
expand (int nRows, int nCols) | |
findWidget (QWidget *w, int *row, int *column) | |
numCols () | |
numRows () | |
Corner QGridLayout::origin() | |
rowSpacing (int row) | |
setColSpacing (int col, int minSize) | |
setColStretch (int col, int stretch) | |
setOrigin (Qt::Corner corner) | |
setRowSpacing (int row, int minSize) | |
QGroupBox (QWidget *parent, const char *name) | |
QGroupBox (const QString &title, QWidget *parent, const char *name) | |
Protected Attributes | |
QList< QWidget * > | mGridFlowWidgets |
int | _ncols |
int | _currow |
int | _curcol |
A Layout that lays out its children in a grid, flowing left to right, top to bottom.
Used eg. in KLF's color dialog to display the standard color panels
Be sure to insert items into the layout with insertGridFlowWidget()
Definition at line 381 of file klfguiutil.h.
KLFGridFlowLayout::KLFGridFlowLayout | ( | int | columns, |
QWidget * | parent | ||
) |
Definition at line 216 of file klfcolorchooser.cpp.
References _ncols, and QGridLayout::addItem().
|
inlinevirtual |
Definition at line 386 of file klfguiutil.h.
void KLFGridFlowLayout::clearAll | ( | ) |
Definition at line 232 of file klfcolorchooser.cpp.
References _curcol, _currow, QList::clear(), mGridFlowWidgets, and QList::size().
Referenced by KLFColorChooseWidget::setAlphaEnabled().
|
virtual |
Definition at line 222 of file klfcolorchooser.cpp.
References _curcol, _currow, _ncols, QGridLayout::addWidget(), QList::append(), and mGridFlowWidgets.
Referenced by KLFColorChooseWidget::setAlphaEnabled().
|
inlinevirtual |
Definition at line 388 of file klfguiutil.h.
|
protected |
Definition at line 397 of file klfguiutil.h.
Referenced by clearAll(), and insertGridFlowWidget().
|
protected |
Definition at line 397 of file klfguiutil.h.
Referenced by clearAll(), and insertGridFlowWidget().
|
protected |
Definition at line 396 of file klfguiutil.h.
Referenced by insertGridFlowWidget(), and KLFGridFlowLayout().
Definition at line 395 of file klfguiutil.h.
Referenced by clearAll(), and insertGridFlowWidget().