mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2026-11-10 01:20:33 +00:00
add resizing
This commit is contained in:
1 parent
4a320bc5d6
commit
7f6afbcb4d
1 file changed
+4
-4
@@ -192,10 +192,6 @@ void DesktopPanel::reinit()
|
|||||||
}
|
}
|
||||||
labels.clear();
|
labels.clear();
|
||||||
proxyWidgets.clear();
|
proxyWidgets.clear();
|
||||||
// layout
|
|
||||||
layout = new QGraphicsGridLayout();
|
|
||||||
layout->setContentsMargins(1, 1, 1, 1);
|
|
||||||
setLayout(layout);
|
|
||||||
|
|
||||||
// add
|
// add
|
||||||
// layout
|
// layout
|
||||||
@@ -218,6 +214,10 @@ void DesktopPanel::reinit()
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateText(true);
|
updateText(true);
|
||||||
|
for (int i=0; i<proxyWidgets.count(); i++) {
|
||||||
|
labels[i]->adjustSize();
|
||||||
|
proxyWidgets[i]->setGeometry(labels[i]->geometry());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user