10 #ifndef QWT_DYNGRID_LAYOUT_H 11 #define QWT_DYNGRID_LAYOUT_H 36 virtual void invalidate();
38 void setMaxColumns( uint maxCols );
39 uint maxColumns()
const;
41 uint numRows ()
const;
42 uint numColumns ()
const;
44 virtual void addItem( QLayoutItem * );
46 virtual QLayoutItem *itemAt(
int index )
const;
47 virtual QLayoutItem *takeAt(
int index );
48 virtual int count()
const;
50 void setExpandingDirections( Qt::Orientations );
51 virtual Qt::Orientations expandingDirections()
const;
52 QList<QRect> layoutItems(
const QRect &, uint numCols )
const;
54 virtual int maxItemWidth()
const;
56 virtual void setGeometry(
const QRect &rect );
58 virtual bool hasHeightForWidth()
const;
59 virtual int heightForWidth(
int )
const;
61 virtual QSize sizeHint()
const;
63 virtual bool isEmpty()
const;
64 uint itemCount()
const;
66 virtual uint columnsForWidth(
int width )
const;
70 void layoutGrid( uint numCols,
71 QVector<int>& rowHeight, QVector<int>& colWidth )
const;
72 void stretchGrid(
const QRect &rect, uint numCols,
73 QVector<int>& rowHeight, QVector<int>& colWidth )
const;
77 int maxRowWidth(
int numCols )
const;
The QwtDynGridLayout class lays out widgets in a grid, adjusting the number of columns and rows to th...