summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-12-28 09:05:33 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-28 07:40:38 -0800
commit3ddb03a27e946f3b46670a5d4f2cbf328edceb13 (patch)
tree64d35aead4d957160841f51becd50b68c564cd7a
parenta88f413f70c149c0dc24647f18c80099bd841855 (diff)
downloadsubsurface-3ddb03a27e946f3b46670a5d4f2cbf328edceb13.tar.gz
Use bookmark flag when bookmark contains heading
Bookmark with compass heading is named 'heading' and should use the bookmark icon. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/profilegraphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index f826e02de..d9755bff2 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -1638,7 +1638,7 @@ QColor EventItem::getColor(const color_indice_t i)
EventItem::EventItem(struct event *ev, QGraphicsItem* parent, bool grayscale): QGraphicsPixmapItem(parent), ev(ev), isGrayscale(grayscale)
{
- if(ev->name && strcmp(ev->name, "bookmark") == 0) {
+ if(ev->name && (strcmp(ev->name, "bookmark") == 0 || strcmp(ev->name, "heading") == 0)) {
setPixmap( QPixmap(QString(":flag")).scaled(20, 20, Qt::KeepAspectRatio, Qt::SmoothTransformation));
} else {
setPixmap( QPixmap(QString(":warning")).scaled(20, 20, Qt::KeepAspectRatio, Qt::SmoothTransformation));