From a079470d068c924dc02a408d41af95c5aabc1408 Mon Sep 17 00:00:00 2001 From: Jakob Schnell Date: Tue, 9 Dec 2025 14:29:12 +0100 Subject: [PATCH 1/2] fix: move Live Preview below Widget --- ORStools/gui/ORStoolsDialogUI.ui | 293 ++++++++++++++++++------------- 1 file changed, 170 insertions(+), 123 deletions(-) diff --git a/ORStools/gui/ORStoolsDialogUI.ui b/ORStools/gui/ORStoolsDialogUI.ui index 4b48c8a2..e33b944a 100644 --- a/ORStools/gui/ORStoolsDialogUI.ui +++ b/ORStools/gui/ORStoolsDialogUI.ui @@ -6,8 +6,8 @@ 0 0 - 519 - 868 + 517 + 673 @@ -36,6 +36,7 @@ + 75 true @@ -53,6 +54,7 @@ + 50 false @@ -68,6 +70,7 @@ + 50 false @@ -83,6 +86,7 @@ + 50 false @@ -256,114 +260,157 @@ 16777215 - + QLayout::SetDefaultConstraint - - - - - 0 - 0 - - - - <html><head/><body><p>Add waypoints interactively from the map canvas.</p><p>Right- or double-click will pause waypoint selection, drag and drop will still be enabled. Another click on the green + button will continue the selection process. The ESC-button will terminate it and delete all waypoints.</p></body></html> - - - - - - - :/plugins/ORStools/img/icon_add.png:/plugins/ORStools/img/icon_add.png - - - - - - - - 0 - 0 - - - - <html><head/><body><p>If waypoints are selected in the list, only these will be deleted. Else all waypoints will be deleted.</p></body></html> - - - - - - - :/plugins/ORStools/img/icon_clear.png:/plugins/ORStools/img/icon_clear.png - - - - - - - - 0 - 0 - - - - <html><head/><body><p>Save points in list to layer. Use the processing algorithms (batch jobs) to work with points from layers.</p></body></html> - - - - - - - :/plugins/ORStools/img/icon_save.png:/plugins/ORStools/img/icon_save.png - - - - - - - LivePreview - - + + + + 10 + + + QLayout::SetNoConstraint + + + + + + 0 + 0 + + + + <html><head/><body><p>Add waypoints interactively from the map canvas.</p><p>Right- or double-click will pause waypoint selection, drag and drop will still be enabled. Another click on the green + button will continue the selection process. The ESC-button will terminate it and delete all waypoints.</p></body></html> + + + + + + + :/plugins/ORStools/img/icon_add.png:/plugins/ORStools/img/icon_add.png + + + + + + + + 0 + 0 + + + + <html><head/><body><p>Save points in list to layer. Use the processing algorithms (batch jobs) to work with points from layers.</p></body></html> + + + + + + + :/plugins/ORStools/img/icon_save.png:/plugins/ORStools/img/icon_save.png + + + + + + + + 0 + 0 + + + + <html><head/><body><p>If waypoints are selected in the list, only these will be deleted. Else all waypoints will be deleted.</p></body></html> + + + + + + + :/plugins/ORStools/img/icon_clear.png:/plugins/ORStools/img/icon_clear.png + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 16777215 - 16777215 - - - - Select waypoints from the map! - - - QFrame::Sunken - - - QAbstractItemView::InternalMove - - - QAbstractItemView::MultiSelection - - + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + Select waypoints from the map! + + + QFrame::Sunken + + + QAbstractItemView::InternalMove + + + QAbstractItemView::MultiSelection + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 20 + + + + + + + + + LivePreview + + + @@ -375,7 +422,7 @@ 16777215 - 20 + 23 @@ -387,10 +434,10 @@ false - + true - + false @@ -414,7 +461,7 @@ 16777215 - 20 + 23 @@ -429,10 +476,10 @@ false - + true - + false @@ -551,10 +598,10 @@ p, li { white-space: pre-wrap; } false - + true - + false @@ -610,7 +657,7 @@ p, li { white-space: pre-wrap; } 16777215 - 20 + 23 @@ -625,10 +672,10 @@ p, li { white-space: pre-wrap; } false - + true - + false @@ -656,7 +703,7 @@ p, li { white-space: pre-wrap; } 16777215 - 20 + 23 @@ -671,10 +718,10 @@ p, li { white-space: pre-wrap; } false - + true - + false @@ -683,7 +730,7 @@ p, li { white-space: pre-wrap; } <html><head/><body><p>Avoid areas by specifying a (Multi-)Polygon layer. </p><p>Does <span style=" font-weight:600;">not work</span> for memory (scratch) Polygon layers!</p><p><span style=" font-weight:600;">Note</span>, only the first feature of the layer will be respected.</p></body></html> - + false @@ -861,7 +908,7 @@ p, li { white-space: pre-wrap; } 16777215 - 20 + 23 @@ -870,10 +917,10 @@ p, li { white-space: pre-wrap; } true - + true - + false @@ -903,15 +950,15 @@ p, li { white-space: pre-wrap; } QTextEdit::AutoBulletList + + 80 + Queries and errors will be printed here. true - - 80 - From 12ee2e45c7922b8a58265d9f6d216bff8bf646cd Mon Sep 17 00:00:00 2001 From: Till Frankenbach Date: Tue, 9 Dec 2025 16:11:52 +0100 Subject: [PATCH 2/2] fix: make only QListWIdget expand --- ORStools/gui/ORStoolsDialogUI.ui | 101 +++++++++++++++---------------- 1 file changed, 48 insertions(+), 53 deletions(-) diff --git a/ORStools/gui/ORStoolsDialogUI.ui b/ORStools/gui/ORStoolsDialogUI.ui index e33b944a..e9bf1453 100644 --- a/ORStools/gui/ORStoolsDialogUI.ui +++ b/ORStools/gui/ORStoolsDialogUI.ui @@ -36,7 +36,6 @@ - 75 true @@ -54,7 +53,6 @@ - 50 false @@ -70,7 +68,6 @@ - 50 false @@ -86,7 +83,6 @@ - 50 false @@ -179,7 +175,7 @@ - + 0 0 @@ -198,7 +194,7 @@ - + 0 0 @@ -212,7 +208,13 @@ - + + + 0 + 0 + + + QLayout::SetDefaultConstraint @@ -237,13 +239,26 @@ + + + + Qt::Horizontal + + + + 20 + 20 + + + + - + 0 0 @@ -272,6 +287,9 @@ QLayout::SetNoConstraint + + 200 + @@ -332,19 +350,6 @@ - - - - Qt::Vertical - - - - 20 - 40 - - - - @@ -352,7 +357,7 @@ - + 0 0 @@ -383,22 +388,6 @@ - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 20 - 20 - - - - @@ -406,6 +395,12 @@ + + + 0 + 0 + + LivePreview @@ -434,10 +429,10 @@ false - + true - + false @@ -476,10 +471,10 @@ false - + true - + false @@ -598,10 +593,10 @@ p, li { white-space: pre-wrap; } false - + true - + false @@ -672,10 +667,10 @@ p, li { white-space: pre-wrap; } false - + true - + false @@ -718,10 +713,10 @@ p, li { white-space: pre-wrap; } false - + true - + false @@ -730,7 +725,7 @@ p, li { white-space: pre-wrap; } <html><head/><body><p>Avoid areas by specifying a (Multi-)Polygon layer. </p><p>Does <span style=" font-weight:600;">not work</span> for memory (scratch) Polygon layers!</p><p><span style=" font-weight:600;">Note</span>, only the first feature of the layer will be respected.</p></body></html> - + false @@ -917,10 +912,10 @@ p, li { white-space: pre-wrap; } true - + true - + false @@ -950,8 +945,8 @@ p, li { white-space: pre-wrap; } QTextEdit::AutoBulletList - - 80 + + 80.000000000000000 Queries and errors will be printed here.