[education/rkward] rkward/windows: Improve layout

Thomas Friedrichsmeier null at kde.org
Mon Jun 24 22:13:02 BST 2024


Git commit fd8cdb13c14ab184c837a4eba9bb9adc662a9244 by Thomas Friedrichsmeier.
Committed on 22/06/2024 at 22:07.
Pushed by tfry into branch 'master'.

Improve layout

M  +4    -1    rkward/windows/rkmdiwindow.cpp

https://invent.kde.org/education/rkward/-/commit/fd8cdb13c14ab184c837a4eba9bb9adc662a9244

diff --git a/rkward/windows/rkmdiwindow.cpp b/rkward/windows/rkmdiwindow.cpp
index 1355318fe..754c526a5 100644
--- a/rkward/windows/rkmdiwindow.cpp
+++ b/rkward/windows/rkmdiwindow.cpp
@@ -334,7 +334,10 @@ void RKMDIWindow::showStatusMessageNow() {
 		status_popup_container = new QWidget (this);
 		if (!isType(RKMDIWindow::X11Window)) {
 			auto blayout = qobject_cast<QVBoxLayout*> (layout());
-			if (blayout) blayout->insertWidget(0, status_popup_container);
+			if (blayout) {
+				blayout->insertWidget(0, status_popup_container);
+				blayout->setStretch(1, 2); // main widget should get most space
+			}
 		}
 		QVBoxLayout *layout = new QVBoxLayout (status_popup_container);
 		layout->setContentsMargins (10, 10, 10, 10);



More information about the rkward-tracker mailing list