Changeset a182ba


Ignore:
Timestamp:
01/17/12 13:16:10 (4 months ago)
Author:
Stefan Persson <stefan.persson@…>
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
Message:

Delete sensors from model and storage

Location:
telldus-gui/Plugins/QML
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • telldus-gui/Plugins/QML/qmlarray.cpp

    r20d662 ra182ba  
    3636} 
    3737 
     38void 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 
    3846int QMLArray::rowCount(const QModelIndex &parent) const { 
    3947        return d->list.size(); 
  • telldus-gui/Plugins/QML/qmlarray.h

    r20d662 ra182ba  
    2020public slots: 
    2121        void push(const QScriptValue &v); 
     22        void remove(int index); 
    2223        QVariant get(int index) const; 
    2324 
Note: See TracChangeset for help on using the changeset viewer.