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:
Tomaz Canabrava 2013-11-21 23:32:11 -02:00 committed by Dirk Hohndel
parent cee021ddd3
commit bc461d091c

View file

@ -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;
}