Changeset a182ba
- Timestamp:
- 01/17/12 13:16:10 (4 months ago)
- Branches:
- ('master', 'deebf2045e7119c339412580f37a1e653f7d5715')('controller-upgrade', '00f95d22e12d96ef089e0902ef62ae8ce841dc6f')
- Children:
- 5b3b6699970beabbd1af5f4a45002244dfa42de5
- Parents:
- 9afb2cbbacbc788de8372e6c0a2dd60585f0e947
- git-author:
- Stefan Persson <stefan.persson@telldus.se>2012-01-17 13:16:10+01:00
- git-committer:
- Stefan Persson <stefan.persson@telldus.se>2012-01-17 13:16:10+01:00
- Location:
- telldus-gui/Plugins/QML
- Files:
-
- 2 edited
-
qmlarray.cpp (modified) (1 diff)
-
qmlarray.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
telldus-gui/Plugins/QML/qmlarray.cpp
r20d662 ra182ba 36 36 } 37 37 38 void QMLArray::remove(int index) { 39 qDebug() << "Count first: " << d->list.count(); 40 beginRemoveRows( QModelIndex(), index, index ); 41 d->list.takeAt(index); 42 endRemoveRows(); 43 qDebug() << "Count after: " << d->list.size(); 44 } 45 38 46 int QMLArray::rowCount(const QModelIndex &parent) const { 39 47 return d->list.size(); -
telldus-gui/Plugins/QML/qmlarray.h
r20d662 ra182ba 20 20 public slots: 21 21 void push(const QScriptValue &v); 22 void remove(int index); 22 23 QVariant get(int index) const; 23 24
Note: See TracChangeset
for help on using the changeset viewer.
