Changeset 269 in flair-src for trunk/tools/FlairGCS/src/ComboBox.cpp


Ignore:
Timestamp:
10/04/18 13:53:11 (4 years ago)
Author:
Sanahuja Guillaume
Message:

flairgcs:
speed up processing time when receiving datas from uav
triger watchdog while receiving datas from uav
(avoids connection lost in uav)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/ComboBox.cpp

    r15 r269  
    2828ComboBox::~ComboBox() { delete combobox; }
    2929
    30 void ComboBox::XmlEvent(QDomElement dom) {
    31   if (dom.attribute("item") != "") {
    32     QString item = dom.attribute("item");
     30void ComboBox::XmlEvent(QDomElement *dom) {
     31  if (dom->attribute("item") != "") {
     32    QString item = dom->attribute("item");
    3333    combobox->addItem(item);
    3434    combobox->setCurrentIndex(combobox_value);
     
    5050void ComboBox::Reset(void) { combobox->setCurrentIndex(combobox_value); }
    5151
    52 void ComboBox::LoadEvent(QDomElement dom) {
     52void ComboBox::LoadEvent(QDomElement *dom) {
    5353  if (combobox->isEnabled() == true) {
    54     combobox->setCurrentIndex((dom.attribute("value")).toInt());
     54    combobox->setCurrentIndex((dom->attribute("value")).toInt());
    5555  }
    5656}
Note: See TracChangeset for help on using the changeset viewer.