Ignore:
Timestamp:
Jul 27, 2016, 5:42:27 PM (5 years ago)
Author:
Thomas Fuhrmann
Message:

Default xml configuration is working with ListWidget?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mavlink/lib/FlairCore/src/Widget.cpp

    r15 r53  
    1919#include "Widget_impl.h"
    2020
     21//to delete, for test purpose
     22#include <iostream>
     23
    2124using std::string;
    2225
     
    8285  if (GetPersistentXmlProp<double>(prop, tmp)) {
    8386    value = tmp;
     87    return true;
     88  } else {
     89    return false;
     90  }
     91}
     92
     93template <>
     94bool Widget::GetPersistentXmlProp(std::string prop, std::string &value) {
     95  xmlChar *result = NULL;
     96  result = xmlGetProp(pimpl_->file_node, (xmlChar *)prop.c_str());
     97  if (result != NULL) {
     98    value = std::string((char*)result);
     99    xmlFree(result);
    84100    return true;
    85101  } else {
Note: See TracChangeset for help on using the changeset viewer.