27 #ifndef QTLAYEREDLAYOUT_H_
28 #define QTLAYEREDLAYOUT_H_
81 virtual bool eventFilter(QObject* watched, QEvent* event);
87 void addItem(QLayoutItem* item);
96 int indexOf(QWidget* widget)
const;
99 QLayoutItem*
itemAt(
int index)
const;
110 QLayoutItem*
takeAt(
int index);
119 void insertItem(
int index, QLayoutItem* item);
int layeredIndexOf(QWidget *widget) const
Returns the layered index of the given widget, using recursive parameters.
void installOrRemoveSelf(QLayoutItem *item, bool install)
Installs or removes this layout as an event filter on the given item.
bool itsPropagateEvents_
Flag to propagate events or not.
void redoParentStack()
Redoes the sibling widget stack in the parent, if applicable.
virtual bool eventFilter(QObject *watched, QEvent *event)
QObject Methods //.
QRect geometry() const
QLayoutItem Methods //.
int count() const
Implements QLayout::count().
QSize maximumSize() const
Overrides QLayout::maximumSize().
virtual Type type()
Return the type enum.
bool isEmpty() const
Implements QLayoutItem::isEmpty().
static bool propagateEventType(QEvent::Type type)
Static //.
QLayoutItem * itemAt(int index) const
Implements QLayout::itemAt().
void addItem(QLayoutItem *item)
QLayout Methods //.
void insertItem(int index, QLayoutItem *item)
QtLayeredLayout Methods //.
Subclass of QLayout to have multiple widgets layered on top of each other.
int indexOf(QWidget *widget) const
Overrides QLayout::indexOf().
Qt::Orientations expandingDirections() const
Overrides QLayout::expandingDirections().
QLayoutItem * takeAt(int index)
Implements QLayout::takeAt().
QRect itsGeometry_
Last set geometry.
QSize minimumSize() const
Overrides QLayout::minimumSize().
~QtLayeredLayout()
Destructor.
QtLayeredLayout()
Non-Static //.
QSize sizeHint() const
Implements QLayoutItem::sizeHint().
void insertWidget(int index, QWidget *widget)
void setGeometry(const QRect &r)
Implements QLayoutItem::setGeometry().
QList< QLayoutItem * > itsItems_
Items.