Thank you talk2amulya, the second one did effectively worked for me.
Here is the code if someone is interested in:
{
public:
inline IdentifiersEditor() {}
};
class IdentifiersEditor : public QItemEditorFactory
{
public:
inline IdentifiersEditor() {}
QWidget *createEditor(QVariant::Type type, QWidget *parent) const;
};
To copy to clipboard, switch view to plain text mode
IdentifiersEditor
::createEditor(QVariant::Type type,
QWidget *parent
) const { switch (type) {
ColorListEditor *cb = new ColorListEditor(parent);
cb->setFrame(false);
return cb;
}
default:
break;
}
return 0;
}
QWidget *
IdentifiersEditor::createEditor(QVariant::Type type, QWidget *parent) const {
switch (type) {
case QVariant::Color: {
ColorListEditor *cb = new ColorListEditor(parent);
cb->setFrame(false);
return cb;
}
default:
return QItemEditorFactory::createEditor(type, parent);
break;
}
return 0;
}
To copy to clipboard, switch view to plain text mode
Bookmarks