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 () |
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 380 of file klfguiutil.h.
KLFGridFlowLayout::KLFGridFlowLayout | ( | int | columns, |
QWidget * | parent | ||
) |
Definition at line 369 of file klfcolorchooser.cpp.
References _ncols.
|
inlinevirtual |
Definition at line 385 of file klfguiutil.h.
void KLFGridFlowLayout::clearAll | ( | ) |
Definition at line 385 of file klfcolorchooser.cpp.
References _curcol, _currow, QList::clear(), mGridFlowWidgets, and QList::size().
|
virtual |
Definition at line 375 of file klfcolorchooser.cpp.
References _curcol, _currow, _ncols, QList::append(), and mGridFlowWidgets.
|
inlinevirtual |
Definition at line 387 of file klfguiutil.h.
|
protected |
Definition at line 396 of file klfguiutil.h.
Referenced by clearAll(), and insertGridFlowWidget().
|
protected |
Definition at line 396 of file klfguiutil.h.
Referenced by clearAll(), and insertGridFlowWidget().
|
protected |
Definition at line 395 of file klfguiutil.h.
Referenced by insertGridFlowWidget(), and KLFGridFlowLayout().
|
protected |
Definition at line 394 of file klfguiutil.h.
Referenced by clearAll(), and insertGridFlowWidget().