15 CNameVariantPairView::CNameVariantPairView(QWidget *parent) :
CViewBase(parent)
28 const CIcon &icon,
bool resize,
bool skipEqualValues)
Simple model displaying name / variant values.
bool containsName(const QString &name) const
Contains name already?
bool addOrUpdateByName(const QString &name, const swift::misc::CVariant &value, const swift::misc::CIcon &icon, bool skipEqualValues)
Add our update a value.
void removeByName(const QString &name)
Remove by given name.
void setIconMode(bool withIcon)
Icon on / off.
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.
void standardInit(ModelClass *model=nullptr)
Standard initialization.
ModelClass * m_model
corresponding model
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.