Skip to content

Commit

Permalink
Tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Dec 7, 2023
1 parent 8d5b24c commit e266514
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions QgisModelBaker/utils/gui_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit e266514

Please sign in to comment.