#ifndef SINGLE_MARKERS_H #define SINGLE_MARKERS_H #include "gtl_gui_chart_markers_model.h" namespace gtl { namespace gui { class chart_single_markers : public chart_markers_model { Q_OBJECT public: explicit chart_single_markers(QObject *parent = nullptr); // Header: QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; // Basic functionality: int columnCount(const QModelIndex &parent = QModelIndex()) const override; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; // Editable: bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; Qt::ItemFlags flags(const QModelIndex& index) const override; private slots: virtual void marker_changed() override; }; } } #endif // SINGLE_MARKERS_H