Changeset View
Changeset View
Standalone View
Standalone View
src/services/ktraderparsetree.cpp
Show First 20 Lines • Show All 501 Lines • ▼ Show 20 Line(s) | 499 | if ((*it).type() == QVariant::Double && | |||
---|---|---|---|---|---|
502 | break; | 502 | break; | ||
503 | } | 503 | } | ||
504 | return true; | 504 | return true; | ||
505 | } | 505 | } | ||
506 | 506 | | |||
507 | if (c1.type == ParseContext::T_STRING && c2.type == ParseContext::T_STR_SEQ) { | 507 | if (c1.type == ParseContext::T_STRING && c2.type == ParseContext::T_STR_SEQ) { | ||
508 | if (false && m_substring) { | 508 | if (false && m_substring) { | ||
509 | _context->b = false; | 509 | _context->b = false; | ||
510 | foreach (const QString &string, c2.strSeq) { | 510 | for (const QString &string : qAsConst(c2.strSeq)) { | ||
511 | if (string.contains(c1.str, m_cs)) { | 511 | if (string.contains(c1.str, m_cs)) { | ||
512 | _context->b = true; | 512 | _context->b = true; | ||
513 | break; | 513 | break; | ||
514 | } | 514 | } | ||
515 | } | 515 | } | ||
516 | } else { | 516 | } else { | ||
517 | _context->b = c2.strSeq.contains(c1.str, m_cs); | 517 | _context->b = c2.strSeq.contains(c1.str, m_cs); | ||
518 | } | 518 | } | ||
▲ Show 20 Lines • Show All 203 Lines • ▼ Show 20 Line(s) | 718 | if (service) { | |||
722 | } | 722 | } | ||
723 | } else if (info.isValid()) { | 723 | } else if (info.isValid()) { | ||
724 | KPluginInfo::List::ConstIterator oit = pluginOffers.cbegin(); | 724 | KPluginInfo::List::ConstIterator oit = pluginOffers.cbegin(); | ||
725 | for (; oit != pluginOffers.cend(); ++oit) { | 725 | for (; oit != pluginOffers.cend(); ++oit) { | ||
726 | offerValues << (*oit).property(_prop); | 726 | offerValues << (*oit).property(_prop); | ||
727 | } | 727 | } | ||
728 | } | 728 | } | ||
729 | 729 | | |||
730 | foreach (const QVariant &p, offerValues) { | 730 | for (const QVariant &p : qAsConst(offerValues)) { | ||
731 | if (p.isValid()) { | 731 | if (p.isValid()) { | ||
732 | // Determine new maximum/minimum | 732 | // Determine new maximum/minimum | ||
733 | if (extrema.type == PreferencesMaxima::PM_INVALID_INT) { | 733 | if (extrema.type == PreferencesMaxima::PM_INVALID_INT) { | ||
734 | extrema.type = PreferencesMaxima::PM_INT; | 734 | extrema.type = PreferencesMaxima::PM_INT; | ||
735 | extrema.iMin = p.toInt(); | 735 | extrema.iMin = p.toInt(); | ||
736 | extrema.iMax = p.toInt(); | 736 | extrema.iMax = p.toInt(); | ||
737 | } | 737 | } | ||
738 | // Correct existing extrema | 738 | // Correct existing extrema | ||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |