summaryrefslogtreecommitdiffstats
path: root/qt-models/divetripmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/divetripmodel.cpp')
-rw-r--r--qt-models/divetripmodel.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp
index 3dcfb7517..31f1a29a2 100644
--- a/qt-models/divetripmodel.cpp
+++ b/qt-models/divetripmodel.cpp
@@ -82,11 +82,16 @@ QVariant TripItem::data(int column, int role) const
return ret;
}
+static const QString icon_names[4] = {
+ QStringLiteral(":zero"),
+ QStringLiteral(":photo-in-icon"),
+ QStringLiteral(":photo-out-icon"),
+ QStringLiteral(":photo-in-out-icon")
+};
QVariant DiveItem::data(int column, int role) const
{
QVariant retVal;
- QString icon_names[4] = {":zero",":photo-in-icon", ":photo-out-icon", ":photo-in-out-icon" };
struct dive *dive = get_dive_by_uniq_id(diveId);
if (!dive)
return QVariant();