mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Planner: show new icon to indicate that last point can't be deleted
Having the trash can disappear is somewhat intuitive, but I'd argue this is even more so. Fixes #789 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d0145621a1
commit
2d68214eac
5 changed files with 11 additions and 0 deletions
|
@ -18,6 +18,11 @@ const QPixmap &trashIcon()
|
|||
return trash;
|
||||
}
|
||||
|
||||
const QPixmap &trashForbiddenIcon()
|
||||
{
|
||||
static QPixmap trash = QPixmap(":trashForbidden").scaledToHeight(defaultIconMetrics().sz_small);
|
||||
return trash;
|
||||
}
|
||||
|
||||
Qt::ItemFlags GasSelectionModel::flags(const QModelIndex &index) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue