Please, please:

don't add more stuff to the QMLManager, it's a huge beast already :)
crete something like this:

Q_INVOKABLE QStringListModel : DiveObjectHelper::buddies() {
       static QStringListModel buddies = new QStringListModel();
        QStringList temp;
for_each_dive (i, d) {
temp << d->buddy;
}
       temp.removeDuplicates();
       buddies.setStringList(temp);
       qDebug() << temp;
       return buddies;
}

What can be happening is that a QStringList will not tell QML that it
changed, and thus, it wont update it's contents.
a Model will.
_______________________________________________
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to