Changeset View
Changeset View
Standalone View
Standalone View
src/konqcombo.cpp
Show First 20 Lines • Show All 299 Lines • ▼ Show 20 Line(s) | |||||
300 | { | 300 | { | ||
301 | KHistoryComboBox::insertItem(index, pixmap, text, title); | 301 | KHistoryComboBox::insertItem(index, pixmap, text, title); | ||
302 | } | 302 | } | ||
303 | 303 | | |||
304 | void KonqCombo::updateItem(const QPixmap &pix, const QString &t, int index, const QString &title) | 304 | void KonqCombo::updateItem(const QPixmap &pix, const QString &t, int index, const QString &title) | ||
305 | { | 305 | { | ||
306 | // No need to flicker | 306 | // No need to flicker | ||
307 | if (itemText(index) == t && | 307 | if (itemText(index) == t && | ||
308 | (!itemIcon(index).isNull() && itemIcon(index).pixmap(iconSize()).serialNumber() == pix.serialNumber())) { | 308 | (!itemIcon(index).isNull() && itemIcon(index).pixmap(iconSize()).cacheKey() == pix.cacheKey())) { | ||
309 | return; | 309 | return; | ||
310 | } | 310 | } | ||
311 | 311 | | |||
312 | // qCDebug(KONQUEROR_LOG) << "item=" << t << "index=" << index; | 312 | // qCDebug(KONQUEROR_LOG) << "item=" << t << "index=" << index; | ||
313 | 313 | | |||
314 | setItemText(index, t); | 314 | setItemText(index, t); | ||
315 | setItemIcon(index, pix); | 315 | setItemIcon(index, pix); | ||
316 | setItemData(index, title); | 316 | setItemData(index, title); | ||
▲ Show 20 Lines • Show All 590 Lines • Show Last 20 Lines |