From 27d492eb658a1764184a16c9b14427219d1399a8 Mon Sep 17 00:00:00 2001 From: Etienne Trimaille Date: Thu, 18 Aug 2022 22:52:14 +0200 Subject: [PATCH] UX - Move some buttons up in the UI fix #379 --- CHANGELOG.md | 2 + QuickOSM/resources/ui/main_window.ui | 458 ++++++++++++++------------- 2 files changed, 244 insertions(+), 216 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bcbe00da..4a4215e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +* Add a warning if the key has a trailing white space (contribution from @kannes) +* Improve the UI by moving buttons up and adding icons to them * Fix some Python exceptions which weren't displayed to the user ## 2.1.0 - 2022-08-08 diff --git a/QuickOSM/resources/ui/main_window.ui b/QuickOSM/resources/ui/main_window.ui index 73993ac7..591745da 100644 --- a/QuickOSM/resources/ui/main_window.ui +++ b/QuickOSM/resources/ui/main_window.ui @@ -824,6 +824,131 @@ QListWidget::item::selected { + + + + + + + 0 + 0 + + + + Save query in a new preset + + + QToolButton::MenuButtonPopup + + + Qt::ToolButtonTextOnly + + + + + + + + 0 + 0 + + + + Qt::LeftToRight + + + Show query + + + false + + + QToolButton::MenuButtonPopup + + + Qt::ToolButtonTextOnly + + + Qt::NoArrow + + + + + + + + 0 + 0 + + + + 0 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + Run query + + + true + + + + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Cancel running query + + + + + + + + + @@ -990,10 +1115,10 @@ QListWidget::item::selected { - - + + - Multipolygons + Multilinestrings true @@ -1001,9 +1126,9 @@ QListWidget::item::selected { - + - Multilinestrings + Multipolygons true @@ -1047,7 +1172,7 @@ QListWidget::item::selected { - + @@ -1079,42 +1204,84 @@ QListWidget::item::selected { - + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + - + + + Overpass query + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + - + 0 0 - - Save query in a new preset - - - QToolButton::MenuButtonPopup + + QDialogButtonBox::Reset - - Qt::ToolButtonTextOnly + + true + + + + + + false + + + + + + + QLayout::SetMinimumSize + - + 0 0 - - Qt::LeftToRight - - Show query - - - false + Generate query QToolButton::MenuButtonPopup @@ -1122,24 +1289,18 @@ QListWidget::item::selected { Qt::ToolButtonTextOnly - - Qt::NoArrow - - + - + 0 0 - - 0 - - - + + 0 @@ -1156,13 +1317,7 @@ QListWidget::item::selected { 0 - - - - 0 - 0 - - + Run query @@ -1173,8 +1328,14 @@ QListWidget::item::selected { - - + + + + 0 + 0 + + + 0 @@ -1191,7 +1352,13 @@ QListWidget::item::selected { 0 - + + + + 0 + 0 + + Cancel running query @@ -1203,57 +1370,6 @@ QListWidget::item::selected { - - - - - - - - - - Overpass query - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 0 - 0 - - - - QDialogButtonBox::Reset - - - true - - - - - - - - - false - - - @@ -1435,7 +1551,7 @@ QListWidget::item::selected { - + @@ -1472,109 +1588,6 @@ QListWidget::item::selected { - - - - QLayout::SetMinimumSize - - - - - - 0 - 0 - - - - Generate query - - - QToolButton::MenuButtonPopup - - - Qt::ToolButtonTextOnly - - - - - - - - 0 - 0 - - - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - Run query - - - true - - - - - - - - - 0 - 0 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - Cancel running query - - - - - - - - - @@ -1610,7 +1623,7 @@ QListWidget::item::selected { - + @@ -1674,7 +1687,7 @@ QListWidget::item::selected { - + @@ -1715,6 +1728,13 @@ QListWidget::item::selected { + + + + Select tags + + + @@ -1786,9 +1806,6 @@ QListWidget::item::selected { - - - @@ -1799,12 +1816,8 @@ QListWidget::item::selected { - - - - Select tags - - + + @@ -1843,6 +1856,19 @@ QListWidget::item::selected { + + + + Qt::Vertical + + + + 20 + 40 + + + + @@ -2373,18 +2399,18 @@ QListWidget::item::selected { - - QgsFileWidget - QWidget -
qgsfilewidget.h
- 1 -
QgsCollapsibleGroupBox QGroupBox
qgscollapsiblegroupbox.h
1
+ + QgsFileWidget + QWidget +
qgsfilewidget.h
+ 1 +
QgsMapLayerComboBox QComboBox