summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/modeldelegates.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/modeldelegates.h')
-rw-r--r--desktop-widgets/modeldelegates.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop-widgets/modeldelegates.h b/desktop-widgets/modeldelegates.h
index ae1292030..e2baa1582 100644
--- a/desktop-widgets/modeldelegates.h
+++ b/desktop-widgets/modeldelegates.h
@@ -2,6 +2,8 @@
#ifndef MODELDELEGATES_H
#define MODELDELEGATES_H
+#include "core/units.h"
+
#include <QStyledItemDelegate>
#include <QComboBox>
class QPainter;
@@ -130,6 +132,9 @@ public:
LocationFilterDelegate(QObject *parent = 0);
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
+ void setCurrentLocation(location_t loc);
+private:
+ location_t currentLocation;
};
#endif // MODELDELEGATES_H