mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added a bunch of tooltips where I thought it was sane.
I think we should actually fill the app with tooltips and whatsthis hints. justsain ;p Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cee021ddd3
commit
bc461d091c
1 changed files with 14 additions and 2 deletions
|
@ -163,6 +163,11 @@ QVariant CylindersModel::data(const QModelIndex& index, int role) const
|
|||
if (index.column() == REMOVE)
|
||||
ret = QIcon(":trash");
|
||||
break;
|
||||
|
||||
case Qt::ToolTipRole:
|
||||
if (index.column() == REMOVE)
|
||||
ret = tr("Clicking here will remove this cylinder.");
|
||||
break;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
@ -459,6 +464,10 @@ QVariant WeightModel::data(const QModelIndex& index, int role) const
|
|||
if (index.column() == REMOVE)
|
||||
ret = QIcon(":trash");
|
||||
break;
|
||||
case Qt::ToolTipRole:
|
||||
if (index.column() == REMOVE)
|
||||
ret = tr("Clicking here will remove this weigthsystem.");
|
||||
break;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
@ -1255,8 +1264,11 @@ QVariant DiveComputerModel::data(const QModelIndex& index, int role) const
|
|||
}
|
||||
}
|
||||
|
||||
if (role == Qt::DecorationRole && index.column() == REMOVE){
|
||||
ret = QIcon(":trash");
|
||||
if (index.column() == REMOVE){
|
||||
switch(role){
|
||||
case Qt::DecorationRole : ret = QIcon(":trash"); break;
|
||||
case Qt::ToolTipRole : ret = tr("Clicking here will remove this divecomputer."); break;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue