11 #ifndef TRANSFER_MARKERS_HPP
12 #define TRANSFER_MARKERS_HPP
18 #include <QAbstractTableModel>
21 #include <QItemDelegate>
22 #include <QModelIndex>
24 class QStyleOptionViewItem;
27 class QAbstractItemModel;
39 QWidget* createEditor(QWidget* parent,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const;
40 void setEditorData(QWidget* editor,
const QModelIndex& index)
const;
41 void setModelData(QWidget* editor, QAbstractItemModel* model,
const QModelIndex& index)
const;
42 void updateEditorGeometry(QWidget* editor,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const;
53 bool showRgba, QObject* parent = 0);
55 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
60 Qt::ItemFlags flags(
const QModelIndex& index)
const;
62 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
63 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole);
64 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
74 void addMarker(
const QItemSelection& selection);
75 void removeMarker(
const QItemSelection& selection);
76 void spreadMarkers(
const QItemSelection& selection);
81 QString colorText(
int idx)
const;
82 bool setColorText(
int idx, QString txt);
92 #endif // TRANSFER_MARKERS_HPP