~ubuntu-branches/ubuntu/wily/psi/wily

« back to all changes in this revision

Viewing changes to src/widgets/iconwidget.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2010-02-19 09:37:12 UTC
  • mfrom: (6.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100219093712-e225xvm1wjcf1cgi
Tags: 0.14-2
* comment out only function which uses va_list to work around build
  problems on armel
* Set Standards-Version to 3.8.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
275
275
                        icon->activated(false); // start animation
276
276
                }
277
277
 
278
 
                QMap<PsiIcon*, QRect>::Iterator it2;
279
 
                for (it2 = iconRects.begin(); it2 != iconRects.end(); it2++) {
280
 
                        QRect r = it2.data();
281
 
                        it2.data() = QRect( r.x(), (h - r.height())/2, r.width(), r.height() );
 
278
                QMutableMapIterator<PsiIcon*, QRect> it2(iconRects);
 
279
                while (it2.hasNext()) {
 
280
                        it2.next();
 
281
                        QRect r = it2.value();
 
282
                        it2.setValue(QRect(r.x(), (h - r.height()) / 2, r.width(), r.height()));
282
283
                }
283
284
#else
284
285
                Q_UNUSED( _iconset );
324
325
                QMap<PsiIcon*, QRect>::ConstIterator it;
325
326
                for (it = iconRects.begin(); it != iconRects.end(); it++) {
326
327
                        PsiIcon *icon = it.key();
327
 
                        QRect r = it.data();
 
328
                        QRect r = it.value();
328
329
                        painter->drawPixmap(QPoint(10 + r.left(), fm.lineSpacing() + 2 + r.top()), icon->pixmap());
329
330
                }
330
331
#else