summaryrefslogtreecommitdiffstats
path: root/qt-models/models.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-17 15:27:49 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-17 15:27:49 -0700
commit2d68214eac604c104226e2638161c0e4fd14fc79 (patch)
treeda091aca941be9cde9397d71cd8f3547f9c651db /qt-models/models.cpp
parentd0145621a1d6a76922cc271208e07ed5827a6590 (diff)
downloadsubsurface-2d68214eac604c104226e2638161c0e4fd14fc79.tar.gz
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>
Diffstat (limited to 'qt-models/models.cpp')
-rw-r--r--qt-models/models.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-models/models.cpp b/qt-models/models.cpp
index fa046ff3f..6f6b501de 100644
--- a/qt-models/models.cpp
+++ b/qt-models/models.cpp
@@ -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
{