Model for DlgSettingsCurveAddRemove and CmdSettingsCurveAddRemove. More...
#include <CurveNameList.h>
Public Member Functions | |
CurveNameList () | |
Default constructor. | |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
Columns are current curve name in first column, and original curve name in second column. | |
bool | containsCurveNameCurrent (const QString &curveName) const |
Return true if specified curve name is already in the list. | |
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
Retrieve data from model. | |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
Override normal flags with additional editing flags. | |
virtual bool | insertRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
Insert one row. | |
virtual bool | removeRows (int row, int count, const QModelIndex &parent) |
Remove one row. | |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
One row per curve name. | |
virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
Store one curve name data. | |
virtual Qt::DropActions | supportedDropActions () const |
Allow dragging for reordering. | |
Model for DlgSettingsCurveAddRemove and CmdSettingsCurveAddRemove.
This is displayed as a QListView, with visible first column showing current curve name. Second column is hidden with curve name at the start of editing, or empty if none.
Definition at line 16 of file CurveNameList.h.