dockspce widget initial
This commit is contained in:
parent
559c91a144
commit
7158be5890
8 changed files with 72 additions and 12 deletions
|
|
@ -17,10 +17,13 @@ void Widget::procWrapper(const Events& events, const RectF& parentArea) {
|
|||
|
||||
checkClicked(events);
|
||||
|
||||
eventProcess(events);
|
||||
if (mHandlesEvents) {
|
||||
|
||||
for (auto child : mChildWidgets) {
|
||||
child->procWrapper(events, getArea());
|
||||
eventProcess(events);
|
||||
|
||||
for (auto child : mChildWidgets) {
|
||||
child->procWrapper(events, getArea());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -31,8 +34,8 @@ void Widget::drawWrapper(Canvas& canvas) {
|
|||
|
||||
// draw child widgets
|
||||
canvas.pushClamp(this->mArea);
|
||||
for (auto child : mChildWidgets) {
|
||||
child->drawWrapper(canvas);
|
||||
for (auto child = mChildWidgets.lastNode(); child; child = child->prev) {
|
||||
child->data->drawWrapper(canvas);
|
||||
}
|
||||
canvas.popClamp();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue