Internal delegate class. More...
#include <OpenMS/VISUAL/ListEditor.h>
Public Member Functions | |
ListEditorDelegate (QObject *parent) | |
Constructor. More... | |
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
not reimplemented More... | |
void | setEditorData (QWidget *editor, const QModelIndex &index) const |
Sets the data to be displayed and edited by the editor for the item specified by index. More... | |
void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
Sets the data for the specified model and item index from that supplied by the editor. If data changed in a cell, that is if it is different from an initial value, then set its background color to yellow and emit the modified signal otherwise make it white. More... | |
void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const |
Updates the editor for the item specified by index according to the style option given. More... | |
void | setType (const ListEditor::Type type) |
void | setRestrictions (const String &restrictions) |
void | setTypeName (QString name) |
set name of type More... | |
void | setFileName (QString name) |
sets the fileName More... | |
Private Member Functions | |
ListEditorDelegate () | |
Not implemented => private. More... | |
Private Attributes | |
ListEditor::Type | type_ |
List type. More... | |
String | restrictions_ |
restrictions for list elements More... | |
QString | typeName_ |
type name. used to distinguish output/input from string lists More... | |
QString | file_name_ |
used to set input and output values in setModelData More... | |
Internal delegate class.
This handles editing of items.
ListEditorDelegate | ( | QObject * | parent | ) |
Constructor.
|
private |
Not implemented => private.
QWidget* createEditor | ( | QWidget * | parent, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |
not reimplemented
void setEditorData | ( | QWidget * | editor, |
const QModelIndex & | index | ||
) | const |
Sets the data to be displayed and edited by the editor for the item specified by index.
void setFileName | ( | QString | name | ) |
sets the fileName
void setModelData | ( | QWidget * | editor, |
QAbstractItemModel * | model, | ||
const QModelIndex & | index | ||
) | const |
Sets the data for the specified model and item index from that supplied by the editor. If data changed in a cell, that is if it is different from an initial value, then set its background color to yellow and emit the modified signal otherwise make it white.
void setRestrictions | ( | const String & | restrictions | ) |
void setType | ( | const ListEditor::Type | type | ) |
void setTypeName | ( | QString | name | ) |
set name of type
void updateEditorGeometry | ( | QWidget * | editor, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |
Updates the editor for the item specified by index according to the style option given.
|
mutableprivate |
used to set input and output values in setModelData
|
private |
restrictions for list elements
|
private |
List type.
|
private |
type name. used to distinguish output/input from string lists
OpenMS / TOPP release 2.0.0 | Documentation generated on Thu Aug 20 2015 01:44:42 using doxygen 1.8.9.1 |