mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 21:06:17 +00:00
Better way to handle the tooltip for dive sites
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0847447cda
commit
63a2307cfb
1 changed files with 3 additions and 5 deletions
|
@ -310,11 +310,9 @@ QVariant DiveLocationModel::data(const QModelIndex &index, int role) const
|
||||||
case Qt::DisplayRole:
|
case Qt::DisplayRole:
|
||||||
return new_ds_value[index.row()];
|
return new_ds_value[index.row()];
|
||||||
case Qt::ToolTipRole:
|
case Qt::ToolTipRole:
|
||||||
if (same_string(displayed_dive_site.notes,"SubsurfaceWebservice"))
|
return displayed_dive_site.uuid ?
|
||||||
return "Update dive site name";
|
tr("Create a new dive site, copying relevant information from the current dive.") :
|
||||||
else
|
tr("Create a new dive site with this name");
|
||||||
return "Create a new dive site";
|
|
||||||
return "Create a new dive site";
|
|
||||||
case Qt::DecorationRole:
|
case Qt::DecorationRole:
|
||||||
return plusIcon;
|
return plusIcon;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue