28 const CIcon &icon,
bool resize,
bool skipEqualValues)
31 bool changed =
m_model->addOrUpdateByName(name, value, icon, skipEqualValues);
Simple model displaying name / variant values.
void removeByName(const QString &name, bool isResizeConditionMet=true)
Remove by name.
void setIconMode(bool withIcon)
Icon mode.
bool addOrUpdateByName(const QString &name, const swift::misc::CVariant &value, const swift::misc::CIcon &icon=swift::misc::CIcon(), bool isResizeConditionMet=true, bool skipEqualValues=true)
Update or add value, QVariant version.
bool containsName(const QString &name)
Contains name.
CNameVariantPairView(QWidget *parent=nullptr)
Constructor.
void standardInit(ModelClass *model=nullptr)
CViewBase(QWidget *parent, ModelClass *model=nullptr)
bool m_forceStretchLastColumnWhenResized
a small table might (few columns) fail stretching, force again
virtual void resizeToContents()
Resize to contents, strategy depends on container size.
Value object for icons. An icon is stored in the global icon repository and identified by its index....
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
Models to be used with views, mainly QTableView.
Views, mainly QTableView.
Free functions in swift::misc.
QObject * parent() const const