Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/core/iconitem.cpp
Show First 20 Lines • Show All 608 Lines • ▼ Show 20 Line(s) | 605 | } else { | |||
---|---|---|---|---|---|
609 | return; | 609 | return; | ||
610 | } | 610 | } | ||
611 | 611 | | |||
612 | // Strangely KFileItem::overlays() returns empty string-values, so | 612 | // Strangely KFileItem::overlays() returns empty string-values, so | ||
613 | // we need to check first whether an overlay must be drawn at all. | 613 | // we need to check first whether an overlay must be drawn at all. | ||
614 | // It is more efficient to do it here, as KIconLoader::drawOverlays() | 614 | // It is more efficient to do it here, as KIconLoader::drawOverlays() | ||
615 | // assumes that an overlay will be drawn and has some additional | 615 | // assumes that an overlay will be drawn and has some additional | ||
616 | // setup time. | 616 | // setup time. | ||
617 | foreach (const QString& overlay, m_overlays) { | 617 | for (const QString &overlay : qAsConst(m_overlays)) { | ||
ahmadsamir: Coding style &overlay | |||||
618 | if (!overlay.isEmpty()) { | 618 | if (!overlay.isEmpty()) { | ||
619 | // There is at least one overlay, draw all overlays above m_pixmap | 619 | // There is at least one overlay, draw all overlays above m_pixmap | ||
620 | // and cancel the check | 620 | // and cancel the check | ||
621 | KIconLoader::global()->drawOverlays(m_overlays, result, KIconLoader::Desktop); | 621 | KIconLoader::global()->drawOverlays(m_overlays, result, KIconLoader::Desktop); | ||
622 | break; | 622 | break; | ||
623 | } | 623 | } | ||
624 | } | 624 | } | ||
625 | 625 | | |||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |
Coding style &overlay