Changeset 7539 in orxonox.OLD for branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.cc
- Timestamp:
- May 5, 2006, 10:44:18 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.cc
r7531 r7539 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include "qt_gui.h" 18 #include "qt_gui_elements.h" 19 19 20 20 21 namespace OrxGui … … 23 24 24 25 26 QtGuiCheckBox::QtGuiCheckBox(const std::string& name, bool defaultValue) 27 : QCheckBox(QString().fromStdString(name)), Saveable(name) 28 { 29 //this->load(this->value()); 30 } 31 32 void QtGuiCheckBox::load(const MultiType& value) 33 { 34 this->setTristate(value.getBool()); 35 this->value() = value; 36 } 25 37 26 38 27 QtGuiComboBox::QtGuiComboBox(QWidget* parent, const std::string& name) 28 : QComboBox(parent), Saveable(name) 39 40 const MultiType& QtGuiCheckBox::save() 41 { 42 return this->value(); 43 } 44 45 QtGuiComboBox::QtGuiComboBox(const std::string& name) 46 : QComboBox(), Saveable(name) 29 47 { 30 48 … … 32 50 } 33 51 52 void QtGuiComboBox::load(const MultiType& value) 53 { 54 this->value() = value; 55 //TODO 56 } 57 58 const MultiType& QtGuiComboBox::save() 59 { 60 return this->value(); 61 } 34 62 35 63
Note: See TracChangeset
for help on using the changeset viewer.