Changeset 5ce0b8
- Timestamp:
- 01/17/12 13:31:01 (4 months ago)
- Branches:
- ('master', 'deebf2045e7119c339412580f37a1e653f7d5715')('controller-upgrade', '00f95d22e12d96ef089e0902ef62ae8ce841dc6f')
- Children:
- 645ef2098e00e54a96cbcc13ecd9b504fe64768b
- Parents:
- 5b3b6699970beabbd1af5f4a45002244dfa42de5
- git-author:
- Micke Prag <micke.prag@telldus.se>2012-01-17 13:31:01+01:00
- git-committer:
- Micke Prag <micke.prag@telldus.se>2012-01-17 13:31:01+01:00
- Location:
- telldus-gui/Plugins/QML
- Files:
-
- 2 edited
-
qmlarray.cpp (modified) (2 diffs)
-
qmlarray.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
telldus-gui/Plugins/QML/qmlarray.cpp
r5b3b66 r5ce0b8 1 1 #include "qmlarray.h" 2 #include <QMetaMethod> 2 3 3 4 class QMLArray::PrivateData { … … 40 41 } 41 42 43 void QMLArray::removeLater(int index) { 44 int methodIndex = this->metaObject()->indexOfMethod(QMetaObject::normalizedSignature("remove(int)")); 45 QMetaMethod method = this->metaObject()->method(methodIndex); 46 method.invoke(this, Qt::QueuedConnection, Q_ARG(int, index)); 47 } 48 42 49 int QMLArray::rowCount(const QModelIndex &parent) const { 43 50 return d->list.size(); -
telldus-gui/Plugins/QML/qmlarray.h
ra182ba r5ce0b8 21 21 void push(const QScriptValue &v); 22 22 void remove(int index); 23 void removeLater(int index); 23 24 QVariant get(int index) const; 24 25
Note: See TracChangeset
for help on using the changeset viewer.
