Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 12, 2006, 8:58:20 AM (18 years ago)
Author:
bensch
Message:

orxonox/qt_gui: QtGuiComboBox saveable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.cc

    r7599 r7601  
    8686  void QtGuiComboBox::load()
    8787  {
    88     //TODO
     88    Saveable::load();
     89    this->setCurrentIndex(this->findText(QString().fromStdString(this->value().getString())));
    8990  }
    9091
    9192  void QtGuiComboBox::save()
    9293  {
     94    this->value() = this->currentText().toStdString();
     95    Saveable::save();
    9396  }
    9497
Note: See TracChangeset for help on using the changeset viewer.