Changeset 7633 in orxonox.OLD for branches/qt_gui/src
- Timestamp:
- May 17, 2006, 9:27:50 AM (19 years ago)
- Location:
- branches/qt_gui/src/lib/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/gui_saveable.cc
r7632 r7633 58 58 void Saveable::load() 59 59 { 60 this->value() = Preferences::getInstance()->getMultiType(this->group->getName(), this->getName(), this->_ value);60 this->value() = Preferences::getInstance()->getMultiType(this->group->getName(), this->getName(), this->_defaultValue); 61 61 PRINTF(4)("Loaded to '%s' of group '%s' value '%s'\n", this->getName(), this->group->getName(), this->value().getCString()); 62 62 } -
branches/qt_gui/src/lib/gui/gui_saveable.h
r7632 r7633 30 30 MultiType& value() { return this->_value; }; 31 31 const MultiType& value() const { return this->_value; }; 32 MultiType& defaultValue() { return this->_defaultValue; }; 33 const MultiType& defaultValue() const { return this->_defaultValue; }; 32 34 bool isSaveable() const { return this->bSaveable; }; 33 35 -
branches/qt_gui/src/lib/gui/qt_gui/gui_video.cc
r7632 r7633 131 131 QGridLayout* advLayout = new QGridLayout(this); //!< Advanced Layout 132 132 { 133 QtGuiCheckBox* shadows = new QtGuiCheckBox(CONFIG_NAME_SHADOWS, this ); //!< CheckBox for shadows133 QtGuiCheckBox* shadows = new QtGuiCheckBox(CONFIG_NAME_SHADOWS, this, true); //!< CheckBox for shadows 134 134 advLayout->addWidget(shadows, 0,0); 135 QtGuiCheckBox* fog = new QtGuiCheckBox(CONFIG_NAME_FOG, this ); //!< CheckBox for fog.135 QtGuiCheckBox* fog = new QtGuiCheckBox(CONFIG_NAME_FOG, this, true); //!< CheckBox for fog. 136 136 advLayout->addWidget(fog, 1,0); 137 QtGuiCheckBox* reflections = new QtGuiCheckBox(CONFIG_NAME_REFLECTIONS, this ); //!< CheckBox for reflections137 QtGuiCheckBox* reflections = new QtGuiCheckBox(CONFIG_NAME_REFLECTIONS, this, true); //!< CheckBox for reflections 138 138 advLayout->addWidget(reflections, 2, 0); 139 QtGuiCheckBox* textures = new QtGuiCheckBox(CONFIG_NAME_TEXTURES, this ); //!< CheckBox for textures139 QtGuiCheckBox* textures = new QtGuiCheckBox(CONFIG_NAME_TEXTURES, this, true); //!< CheckBox for textures 140 140 advLayout->addWidget(textures, 3, 0); 141 141 /*
Note: See TracChangeset
for help on using the changeset viewer.