aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/cleanertablemodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-03-16 11:14:42 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commitd4282e2689ec8647e9deb842ac434f274218a63a (patch)
tree9e50d2adf482fc149d62e778c25236b6eb516e30 /qt-models/cleanertablemodel.h
parent434990dcd40cdbc414893fbc532abf52c30a155b (diff)
downloadsubsurface-d4282e2689ec8647e9deb842ac434f274218a63a.tar.gz
Icons: cache small edit icon
In analogy to the trash-icons, cache a small rendered version of the edit icon. This will be used in the dive-site table. Rename the icon alias from "duplicate-edit-icon" to "edit-icon", as it actually is not a duplicated. The other "edit" icon is an "undo" icon! Move the accessor functions to cleanertablemode.cpp. This is not the ideal place, but since the functions are declared in cleanertablemodel.h it's certainly better than the old place (models.cpp)! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/cleanertablemodel.h')
-rw-r--r--qt-models/cleanertablemodel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/cleanertablemodel.h b/qt-models/cleanertablemodel.h
index d435dad32..0657b2099 100644
--- a/qt-models/cleanertablemodel.h
+++ b/qt-models/cleanertablemodel.h
@@ -9,6 +9,7 @@
/* Retrieve the trash icon pixmap, common to most table models */
const QPixmap &trashIcon();
const QPixmap &trashForbiddenIcon();
+const QPixmap &editIcon();
/* When using a QAbstractTableModel, consider using this instead
* of the default implementation, as it's easyer to setup the columns