Changeset View
Changeset View
Standalone View
Standalone View
src/search/dolphinfacetswidget.cpp
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Line(s) | 146 | } else if (subTerm.startsWith(QLatin1String("rating>="))) { | |||
---|---|---|---|---|---|
148 | const int stars = value.toInt() / 2; | 148 | const int stars = value.toInt() / 2; | ||
149 | setRating(stars); | 149 | setRating(stars); | ||
150 | } | 150 | } | ||
151 | } | 151 | } | ||
152 | } | 152 | } | ||
153 | 153 | | |||
154 | void DolphinFacetsWidget::setFacetType(const QString& type) | 154 | void DolphinFacetsWidget::setFacetType(const QString& type) | ||
155 | { | 155 | { | ||
156 | for (int index = 1; index <= m_typeSelector->count(); index++) { | 156 | for (int index = 0; index <= m_typeSelector->count(); index++) { | ||
157 | if (type == m_typeSelector->itemData(index).toString()) { | 157 | if (type == m_typeSelector->itemData(index).toString()) { | ||
158 | m_typeSelector->setCurrentIndex(index); | 158 | m_typeSelector->setCurrentIndex(index); | ||
159 | break; | 159 | break; | ||
160 | } | 160 | } | ||
161 | } | 161 | } | ||
162 | } | 162 | } | ||
163 | 163 | | |||
164 | void DolphinFacetsWidget::setRating(const int stars) | 164 | void DolphinFacetsWidget::setRating(const int stars) | ||
Show All 29 Lines |