From e266514ae2698647c1587c61c51de7d1f7b991d2 Mon Sep 17 00:00:00 2001 From: signedav Date: Thu, 7 Dec 2023 15:15:15 +0100 Subject: [PATCH] Tooltips --- QgisModelBaker/utils/gui_utils.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/QgisModelBaker/utils/gui_utils.py b/QgisModelBaker/utils/gui_utils.py index 3ccf321fd..85522bdba 100644 --- a/QgisModelBaker/utils/gui_utils.py +++ b/QgisModelBaker/utils/gui_utils.py @@ -377,6 +377,16 @@ def data(self, index, role): f"../images/file_types/{type}.png", ) ) + if role == Qt.ToolTipRole: + if index.column() == SourceModel.Columns.IS_CATALOGUE: + return self.tr( + "If the data is a catalog, it is imported into the corresponding dataset (called catalogueset)." + ) + if index.column() == SourceModel.Columns.DELETE_DATA: + return self.tr( + "If activated, the existing data is deleted before the import." + ) + return item.data(int(role)) def add_source(self, name, type, path, origin_info=None):