1 #ifndef __libquark_gui_AbstractItemModelMenuAdapter_hxx 2 #define __libquark_gui_AbstractItemModelMenuAdapter_hxx 4 class QAbstractItemModel;
12 #include <QActionGroup> 54 Q_DECLARE_FLAGS(Options,
Option);
72 virtual QString getMenuLabelForRow(
int row)
const = 0;
73 virtual void handleRowSelection(
int row) = 0;
74 void setSelectedRow(
int row);
79 void removeItems(
const QModelIndex &parent,
int start,
int end);
80 void insertItems(
const QModelIndex &parent,
int start,
int end);
81 void moveItems(
const QModelIndex &sourceParent,
int sourceStart,
82 int sourceEnd,
const QModelIndex &destParent,
int destRow);
83 void updateItems(
const QModelIndex &topLeft,
const QModelIndex &bottomRight);
84 void actionTriggered();
88 const QAbstractItemModel *_model;
90 QList<QAction *> _actions;
91 QActionGroup *_actionGroup;
102 quark::gui::AbstractItemModelMenuAdapter::Options);
104 #endif // __libquark_gui_AbstractItemModelMenuAdapter_hxx
Definition: BarChartView.h++:6
#define LIBQUARK_API
Definition: Quark.h++:18