From 8c91781007f95fe1519e0ad2a99a075434d7ba4f Mon Sep 17 00:00:00 2001 From: SimonSAMPERE <41120579+SimonSAMPERE@users.noreply.github.com> Date: Mon, 26 Jun 2023 21:13:49 +0200 Subject: [PATCH] #455 --- modules/results/display.py | 1 + modules/search_form.py | 12 +++++++++- ui/isogeo_dockwidget_base.ui | 45 +++++++++++++++++++++++++++++++----- ui/ui_isogeo.py | 21 +++++++++++++---- 4 files changed, 67 insertions(+), 12 deletions(-) diff --git a/modules/results/display.py b/modules/results/display.py index e550cd35..e2cdfb8a 100644 --- a/modules/results/display.py +++ b/modules/results/display.py @@ -567,6 +567,7 @@ def show_results(self, api_results): # Else, add a combobox, storing all possibilities. else: combo = QComboBox() + combo.installEventFilter(self.form_mng) for option in add_options_dict: option_type = option.split(" : ")[0] # services diff --git a/modules/search_form.py b/modules/search_form.py index 3f7fcb9e..ba9f598b 100644 --- a/modules/search_form.py +++ b/modules/search_form.py @@ -14,7 +14,7 @@ from qgis.utils import iface # PyQT -from qgis.PyQt.QtCore import pyqtSignal, QSettings, Qt +from qgis.PyQt.QtCore import pyqtSignal, QSettings, Qt, QEvent from qgis.PyQt.QtWidgets import QComboBox from qgis.PyQt.QtGui import QIcon, QStandardItem @@ -77,6 +77,10 @@ def __init__(self, trad): self.tr = trad + # disable wheel event on combobox + for cbb in self.findChildren(QComboBox): + cbb.installEventFilter(self) + # match between widgets and metadata fields self.match_widget_field = { self.cbb_type: "datatype", @@ -135,6 +139,12 @@ def __init__(self, trad): # Setting result manager self.results_mng = ResultsManager(self) + def eventFilter(self, obj, event): # https://github.com/isogeo/isogeo-plugin-qgis/issues/455 + if event.type() == QEvent.Wheel: + return True + else: + return False + def update_cbb_keywords(self, tags_keywords: dict = {}, selected_keywords: list = []): """Keywords combobox is specific because items are checkable. See: https://github.com/isogeo/isogeo-plugin-qgis/issues/159 diff --git a/ui/isogeo_dockwidget_base.ui b/ui/isogeo_dockwidget_base.ui index 5612ce98..de6827e9 100644 --- a/ui/isogeo_dockwidget_base.ui +++ b/ui/isogeo_dockwidget_base.ui @@ -13,7 +13,7 @@ 572 - 611 + 612 @@ -236,7 +236,7 @@ - QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 5px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;} + QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 5px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;} Advanced search @@ -364,6 +364,9 @@ 9 + + Qt::ClickFocus + -1 @@ -460,6 +463,9 @@ 9 + + Qt::ClickFocus + 15 @@ -471,8 +477,8 @@ - 12 - 12 + 20 + 20 @@ -566,6 +572,9 @@ 9 + + Qt::ClickFocus + 15 @@ -666,6 +675,9 @@ 9 + + Qt::ClickFocus + 15 @@ -768,6 +780,9 @@ 9 + + Qt::ClickFocus + 15 @@ -896,6 +911,9 @@ 9 + + Qt::ClickFocus + true @@ -995,6 +1013,9 @@ 9 + + Qt::ClickFocus + 15 @@ -1095,6 +1116,9 @@ 9 + + Qt::ClickFocus + 15 @@ -1195,6 +1219,9 @@ 9 + + Qt::ClickFocus + 15 @@ -1291,6 +1318,9 @@ 9 + + Qt::ClickFocus + 15 @@ -1520,6 +1550,9 @@ false + + Qt::ClickFocus + Quick searches @@ -2427,13 +2460,13 @@ Qt::NoFocus - QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 5px; margin-right: 5px; left: 0px; top: 3px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;} + QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 5px; margin-right: 5px; left: 0px; top: 3px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;} QgsCollapsibleGroupBoxBasic { border: none; }QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;} Advanced resources - false + true diff --git a/ui/ui_isogeo.py b/ui/ui_isogeo.py index e9f3b119..4952a3e1 100644 --- a/ui/ui_isogeo.py +++ b/ui/ui_isogeo.py @@ -12,7 +12,7 @@ class Ui_IsogeoDockWidgetBase(object): def setupUi(self, IsogeoDockWidgetBase): IsogeoDockWidgetBase.setObjectName("IsogeoDockWidgetBase") IsogeoDockWidgetBase.resize(572, 900) - IsogeoDockWidgetBase.setMinimumSize(QtCore.QSize(572, 611)) + IsogeoDockWidgetBase.setMinimumSize(QtCore.QSize(572, 612)) IsogeoDockWidgetBase.setMaximumSize(QtCore.QSize(700, 900)) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/plugins/Isogeo/icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) @@ -97,7 +97,7 @@ def setupUi(self, IsogeoDockWidgetBase): font.setBold(True) font.setWeight(75) self.grp_filters.setFont(font) - self.grp_filters.setStyleSheet("QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 5px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}") + self.grp_filters.setStyleSheet("QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 5px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}") self.grp_filters.setCollapsed(False) self.grp_filters.setScrollOnExpand(True) self.grp_filters.setObjectName("grp_filters") @@ -152,6 +152,7 @@ def setupUi(self, IsogeoDockWidgetBase): font = QtGui.QFont() font.setPointSize(9) self.cbb_grpTh.setFont(font) + self.cbb_grpTh.setFocusPolicy(QtCore.Qt.ClickFocus) self.cbb_grpTh.setMaxVisibleItems(15) self.cbb_grpTh.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.cbb_grpTh.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon) @@ -192,10 +193,11 @@ def setupUi(self, IsogeoDockWidgetBase): font = QtGui.QFont() font.setPointSize(9) self.cbb_geofilter.setFont(font) + self.cbb_geofilter.setFocusPolicy(QtCore.Qt.ClickFocus) self.cbb_geofilter.setMaxVisibleItems(15) self.cbb_geofilter.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.cbb_geofilter.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon) - self.cbb_geofilter.setIconSize(QtCore.QSize(12, 12)) + self.cbb_geofilter.setIconSize(QtCore.QSize(20, 20)) self.cbb_geofilter.setObjectName("cbb_geofilter") self.lyt_vert_filter_geo.addWidget(self.cbb_geofilter) self.lyt_vert_filters_left.addLayout(self.lyt_vert_filter_geo) @@ -238,6 +240,7 @@ def setupUi(self, IsogeoDockWidgetBase): font = QtGui.QFont() font.setPointSize(9) self.cbb_format.setFont(font) + self.cbb_format.setFocusPolicy(QtCore.Qt.ClickFocus) self.cbb_format.setMaxVisibleItems(15) self.cbb_format.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.cbb_format.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon) @@ -283,6 +286,7 @@ def setupUi(self, IsogeoDockWidgetBase): font = QtGui.QFont() font.setPointSize(9) self.cbb_inspire.setFont(font) + self.cbb_inspire.setFocusPolicy(QtCore.Qt.ClickFocus) self.cbb_inspire.setMaxVisibleItems(15) self.cbb_inspire.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.cbb_inspire.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon) @@ -326,6 +330,7 @@ def setupUi(self, IsogeoDockWidgetBase): font = QtGui.QFont() font.setPointSize(9) self.cbb_contact.setFont(font) + self.cbb_contact.setFocusPolicy(QtCore.Qt.ClickFocus) self.cbb_contact.setMaxVisibleItems(15) self.cbb_contact.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.cbb_contact.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon) @@ -378,6 +383,7 @@ def setupUi(self, IsogeoDockWidgetBase): font = QtGui.QFont() font.setPointSize(9) self.cbb_chck_kw.setFont(font) + self.cbb_chck_kw.setFocusPolicy(QtCore.Qt.ClickFocus) self.cbb_chck_kw.setEditable(True) self.cbb_chck_kw.setCurrentText("") self.cbb_chck_kw.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon) @@ -420,6 +426,7 @@ def setupUi(self, IsogeoDockWidgetBase): font = QtGui.QFont() font.setPointSize(9) self.cbb_type.setFont(font) + self.cbb_type.setFocusPolicy(QtCore.Qt.ClickFocus) self.cbb_type.setMaxVisibleItems(15) self.cbb_type.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.cbb_type.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon) @@ -465,6 +472,7 @@ def setupUi(self, IsogeoDockWidgetBase): font = QtGui.QFont() font.setPointSize(9) self.cbb_owner.setFont(font) + self.cbb_owner.setFocusPolicy(QtCore.Qt.ClickFocus) self.cbb_owner.setMaxVisibleItems(15) self.cbb_owner.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.cbb_owner.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon) @@ -510,6 +518,7 @@ def setupUi(self, IsogeoDockWidgetBase): font = QtGui.QFont() font.setPointSize(9) self.cbb_srs.setFont(font) + self.cbb_srs.setFocusPolicy(QtCore.Qt.ClickFocus) self.cbb_srs.setMaxVisibleItems(15) self.cbb_srs.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.cbb_srs.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon) @@ -550,6 +559,7 @@ def setupUi(self, IsogeoDockWidgetBase): font = QtGui.QFont() font.setPointSize(9) self.cbb_license.setFont(font) + self.cbb_license.setFocusPolicy(QtCore.Qt.ClickFocus) self.cbb_license.setMaxVisibleItems(15) self.cbb_license.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.cbb_license.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon) @@ -645,6 +655,7 @@ def setupUi(self, IsogeoDockWidgetBase): font.setBold(False) font.setWeight(50) self.cbb_quicksearch_use.setFont(font) + self.cbb_quicksearch_use.setFocusPolicy(QtCore.Qt.ClickFocus) self.cbb_quicksearch_use.setAutoFillBackground(True) self.cbb_quicksearch_use.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.cbb_quicksearch_use.setIconSize(QtCore.QSize(20, 20)) @@ -1011,8 +1022,8 @@ def setupUi(self, IsogeoDockWidgetBase): font.setWeight(75) self.mGroupBox.setFont(font) self.mGroupBox.setFocusPolicy(QtCore.Qt.NoFocus) - self.mGroupBox.setStyleSheet("QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 5px; margin-right: 5px; left: 0px; top: 3px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}") - self.mGroupBox.setCollapsed(False) + self.mGroupBox.setStyleSheet("QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 5px; margin-right: 5px; left: 0px; top: 3px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;} QgsCollapsibleGroupBoxBasic { border: none; }QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; margin-left: 20px; margin-right: 5px; left: 0px; top: 1px;}") + self.mGroupBox.setCollapsed(True) self.mGroupBox.setObjectName("mGroupBox") self.gridLayout_9 = QtWidgets.QGridLayout(self.mGroupBox) self.gridLayout_9.setContentsMargins(5, 5, 5, 5)