Changeset 88 in flair-src for trunk/tools/FlairGCS/src
- Timestamp:
- Sep 28, 2016, 11:45:41 AM (8 years ago)
- Location:
- trunk/tools/FlairGCS/src
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/FlairGCS/src/Layout.cpp
r15 r88 22 22 #include <QGeoCoordinate> 23 23 #include <QGridLayout> 24 #include "ListWidget.h" 25 #include <QStringList> 24 26 25 27 Layout::Layout(QWidget *parent, XmlWidget *xml, QString name, QString type) … … 248 250 widget = new Label(this, row, col, name); 249 251 } 252 if (type == "ListWidget") { 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); 262 } 250 263 251 264 if (widget != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.