Changeset View
Changeset View
Standalone View
Standalone View
src/completion/expandingtree/expandingwidgetmodel.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
45 | { | 45 | { | ||
46 | } | 46 | } | ||
47 | 47 | | |||
48 | ExpandingWidgetModel::~ExpandingWidgetModel() | 48 | ExpandingWidgetModel::~ExpandingWidgetModel() | ||
49 | { | 49 | { | ||
50 | clearExpanding(); | 50 | clearExpanding(); | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | static QColor doAlternate(QColor color) | 53 | static QColor doAlternate(const QColor &color) | ||
54 | { | 54 | { | ||
55 | QColor background = QApplication::palette().window().color(); | 55 | QColor background = QApplication::palette().window().color(); | ||
56 | return KColorUtils::mix(color, background, 0.15); | 56 | return KColorUtils::mix(color, background, 0.15); | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | uint ExpandingWidgetModel::matchColor(const QModelIndex &index) const | 59 | uint ExpandingWidgetModel::matchColor(const QModelIndex &index) const | ||
60 | { | 60 | { | ||
61 | int matchQuality = contextMatchQuality(index.sibling(index.row(), 0)); | 61 | int matchQuality = contextMatchQuality(index.sibling(index.row(), 0)); | ||
▲ Show 20 Lines • Show All 493 Lines • Show Last 20 Lines |