From f52c2f9e30ce5745818a6424966e8a2b7b880d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Lach?= Date: Wed, 18 Sep 2024 21:48:41 +0200 Subject: [PATCH] !OSDN:#117756:Slawomir Lach User csn scroll governol settings in qt client This is helpful on Steam Deck diff --git a/client/gui-qt/citydlg.cpp b/client/gui-qt/citydlg.cpp index 48ee757e08..4cdd396925 100644 --- a/client/gui-qt/citydlg.cpp +++ b/client/gui-qt/citydlg.cpp @@ -2002,12 +2002,15 @@ city_dialog::city_dialog(QWidget *parent): qfc_dialog(parent) cma_result_pix = new QLabel; hbox = new QHBoxLayout; + QScrollArea *govA = new QScrollArea(); hbox->addWidget(cma_result_pix); hbox->addWidget(cma_result); hbox->addStretch(10); + govA->setWidget(qsliderbox); + govA->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents); right_layout->addWidget(qgbox); right_layout->addLayout(hbox); - right_layout->addWidget(qsliderbox); + right_layout->addWidget(govA); split_widget1 = new QWidget; split_widget1->setLayout(worklist_layout); -- 2.46.0