~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/phonon/phonon/objectdescriptionmodel.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
292
292
             */
293
293
            inline void setModelData(const QList<ObjectDescription<type> > &data) { //krazy:exclude=inline
294
294
                QList<QExplicitlySharedDataPointer<ObjectDescriptionData> > list;
295
 
                Q_FOREACH (const ObjectDescription<type> &desc, data) {
296
 
                    list << desc.d;
 
295
                for (int i = 0; i < data.count(); ++i) {
 
296
                    list += data.at(i).d;
297
297
                }
298
298
                d->setModelData(list);
299
299
            }
307
307
            inline QList<ObjectDescription<type> > modelData() const { //krazy:exclude=inline
308
308
                QList<ObjectDescription<type> > ret;
309
309
                QList<QExplicitlySharedDataPointer<ObjectDescriptionData> > list = d->modelData();
310
 
                Q_FOREACH (const QExplicitlySharedDataPointer<ObjectDescriptionData> &data, list) {
311
 
                    ret << ObjectDescription<type>(data);
 
310
                for (int i = 0; i < list.count(); ++i) {
 
311
                    ret << ObjectDescription<type>(list.at(i));
312
312
                }
313
313
                return ret;
314
314
            }