BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Generates default cell decorations for Qt trees and tables. More...
Public Member Functions | |
bool | hasCustomDecoration (const QModelIndex &index) const override |
void | initStyleOption (QStyleOptionViewItem *option, const QModelIndex &index) override |
Protected Member Functions | |
virtual std::optional< std::string > | cellText (const QModelIndex &index) const |
Generates default cell decorations for Qt trees and tables.
Definition at line 25 of file defaultcelldecorator.h.
|
protectedvirtual |
Definition at line 31 of file defaultcelldecorator.cpp.
References ModelView::Constants::default_double_decimals, ModelView::Utils::IsBoolVariant(), ModelView::Utils::IsColorVariant(), ModelView::Utils::IsComboVariant(), ModelView::Utils::IsDoubleVariant(), ModelView::Utils::IsExtPropertyVariant(), ModelView::ScientificSpinBox::toString(), and ModelView::ComboProperty::value().
Referenced by hasCustomDecoration(), and initStyleOption().
|
overridevirtual |
Implements ModelView::CellDecoratorInterface.
Definition at line 26 of file defaultcelldecorator.cpp.
References cellText().
Referenced by initStyleOption().
|
overridevirtual |
Implements ModelView::CellDecoratorInterface.
Definition at line 57 of file defaultcelldecorator.cpp.
References cellText(), and hasCustomDecoration().