purpose: prevent the initial value of the model from being changed */
| 134 | } |
| 135 | /* purpose: prevent the initial value of the model from being changed */ |
| 136 | virtual void loadSettings( const QDomElement& element, const QString& name = QString( "value" ) ) |
| 137 | { |
| 138 | float oldInitValue = initValue(); |
| 139 | FloatModel::loadSettings(element, name); |
| 140 | float oldValue = value(); |
| 141 | setInitValue(oldInitValue); |
| 142 | setValue(oldValue); |
| 143 | } |
| 144 | }; |
| 145 | |
| 146 | /** |
nothing calls this directly
no test coverage detected