add todo item for delegate
This commit is contained in:
parent
38ff40e646
commit
cba2cf9fd3
|
@ -1,5 +1,5 @@
|
||||||
|
#include <QMetaEnum>
|
||||||
#include "widgetmodel.h"
|
#include "widgetmodel.h"
|
||||||
#include "qmetaobject.h"
|
|
||||||
|
|
||||||
WidgetModel::WidgetModel(QObject *parent)
|
WidgetModel::WidgetModel(QObject *parent)
|
||||||
: QAbstractItemModel(parent)
|
: QAbstractItemModel(parent)
|
||||||
|
@ -117,7 +117,12 @@ QVariant WidgetModel::data(const QModelIndex &index, int role) const
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
case Qt::EditRole:
|
case Qt::EditRole:
|
||||||
|
switch (static_cast<Column>(index.column())) {
|
||||||
|
case OperatingMode:
|
||||||
|
/// \todo Create a combobox delegate to change the DMX Widget operating mode.
|
||||||
|
default:
|
||||||
return QVariant::fromValue(widgets_.at(index.row()));
|
return QVariant::fromValue(widgets_.at(index.row()));
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user