ui/qt/container.cpp

changeset 526
f6a6b0b08641
parent 525
878df45e6441
--- a/ui/qt/container.cpp	Thu Mar 27 21:28:04 2025 +0100
+++ b/ui/qt/container.cpp	Thu Mar 27 22:06:19 2025 +0100
@@ -220,16 +220,16 @@
 
 void UiGridContainer::end() {
     if(!col_expanding) {
-        QLabel *filler = new QLabel("");
+        QSpacerItem *filler = new QSpacerItem(0, 0);
         x = max_x + 1;
         grid->setColumnStretch(x, 1);
-        grid->addWidget(filler, 0, x, 1, 1, 0);
+        grid->addItem(filler, 0, x, 1, 1, 0);
     }
     if(!row_expanding) {
-        QLabel *filler = new QLabel("");
+        QSpacerItem *filler = new QSpacerItem(0, 0);
         y++;
         grid->setRowStretch(y, 1);
-        grid->addWidget(filler, y, 0, 1, 1, 0);
+        grid->addItem(filler, y, 0, 1, 1, 0);
     }
 }
 

mercurial