Changeset 54 in flair-src for branches/mavlink/tools/FlairGCS/src/Layout.cpp
- Timestamp:
- 07/27/16 17:43:01 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mavlink/tools/FlairGCS/src/Layout.cpp
r48 r54 23 23 #include <QGridLayout> 24 24 #include "ListWidget.h" 25 #include <QStringList> 25 26 26 27 Layout::Layout(QWidget *parent, XmlWidget *xml, QString name, QString type) … … 250 251 } 251 252 if (type == "ListWidget") { 252 widget = new ListWidget(this, row, col, name); 253 // Parse the item list 254 QStringList items; 255 int count = 0; 256 while (dom.hasAttribute("item" + QString::number(count))) { 257 QString item = dom.attribute("item" + QString::number(count)); 258 items.append(item); 259 count++; 260 } 261 widget = new ListWidget(this, row, col, name, items); 253 262 } 254 263
Note:
See TracChangeset
for help on using the changeset viewer.