Changeset 269 in flair-src for trunk/tools/FlairGCS/src/ComboBox.cpp
- Timestamp:
- Oct 4, 2018, 1:53:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/FlairGCS/src/ComboBox.cpp
r15 r269 28 28 ComboBox::~ComboBox() { delete combobox; } 29 29 30 void ComboBox::XmlEvent(QDomElement dom) {31 if (dom .attribute("item") != "") {32 QString item = dom .attribute("item");30 void ComboBox::XmlEvent(QDomElement *dom) { 31 if (dom->attribute("item") != "") { 32 QString item = dom->attribute("item"); 33 33 combobox->addItem(item); 34 34 combobox->setCurrentIndex(combobox_value); … … 50 50 void ComboBox::Reset(void) { combobox->setCurrentIndex(combobox_value); } 51 51 52 void ComboBox::LoadEvent(QDomElement dom) {52 void ComboBox::LoadEvent(QDomElement *dom) { 53 53 if (combobox->isEnabled() == true) { 54 combobox->setCurrentIndex((dom .attribute("value")).toInt());54 combobox->setCurrentIndex((dom->attribute("value")).toInt()); 55 55 } 56 56 }
Note:
See TracChangeset
for help on using the changeset viewer.