70 Q_ASSERT(!parentInfoAreas.
isEmpty());
71 if (parentInfoAreas.
isEmpty())
return;
81 parentInfoAreas.
first()->addToContextMenu(contextMenu);
85 if (parentInfoAreas.
size() < 2)
90 for (
int i = 1; i < parentInfoAreas.
size(); i++)
111 Q_ASSERT_X(dwia, Q_FUNC_INFO,
"Missing info area");
112 dwia->setParentDockWidgetInfoArea(
this);
128 widgetsWithDockWidgetInfoAreaComponent.
append(dwc);
132 if (nestedInfoAreas.
isEmpty())
return widgetsWithDockWidgetInfoAreaComponent;
138 ia->findEmbeddedDockWidgetInfoAreaComponents();
139 if (nestedInfoAreaComponents.
isEmpty())
143 for (CEnableForDockWidgetInfoArea *iac : nestedInfoAreaComponents)
145 const bool r = widgetsWithDockWidgetInfoAreaComponent.
removeOne(iac);
150 return widgetsWithDockWidgetInfoAreaComponent;
153 QList<CDockWidgetInfoArea *> CDockWidgetInfoArea::findNestedInfoAreas()
157 return nestedInfoAreas;
160 QList<const CInfoArea *> CDockWidgetInfoArea::findParentInfoAreas()
const
162 QList<const CInfoArea *> parents;
164 while (currentWidget)
Info area, hosting dockable widgets.
void addToContextMenu(QMenu *menu) const
Add items to context menu.
bool isSelectedDockWidgetInfoArea(const CDockWidgetInfoArea *infoArea) const
Is given widget selected. Means it is not floating, and the one selected.
High level reusable GUI components.
void append(QList< T > &&value)
QList< T >::const_reference at(qsizetype i) const const
bool isEmpty() const const
bool removeOne(const AT &t)
qsizetype size() const const
QList< T > findChildren(QAnyStringView name, Qt::FindChildOptions options) const const
QObject * parent() const const
T qobject_cast(QObject *object)
bool isEmpty() const const