Changeset View
Changeset View
Standalone View
Standalone View
src/completion/katecompletionmodel.cpp
Show First 20 Lines • Show All 1597 Lines • ▼ Show 20 Line(s) | 1555 | { | |||
---|---|---|---|---|---|
1598 | if (ret == 0) { | 1598 | if (ret == 0) { | ||
1599 | // FIXME need to define a better default ordering for multiple model display | 1599 | // FIXME need to define a better default ordering for multiple model display | ||
1600 | ret = m_sourceRow.second.row() - rhs.m_sourceRow.second.row(); | 1600 | ret = m_sourceRow.second.row() - rhs.m_sourceRow.second.row(); | ||
1601 | } | 1601 | } | ||
1602 | 1602 | | |||
1603 | return ret < 0; | 1603 | return ret < 0; | ||
1604 | } | 1604 | } | ||
1605 | 1605 | | |||
1606 | void KateCompletionModel::Group::addItem(Item i, bool notifyModel) | 1606 | void KateCompletionModel::Group::addItem(const Item &i, bool notifyModel) | ||
1607 | { | 1607 | { | ||
1608 | if (isEmpty) { | 1608 | if (isEmpty) { | ||
1609 | notifyModel = false; | 1609 | notifyModel = false; | ||
1610 | } | 1610 | } | ||
1611 | 1611 | | |||
1612 | QModelIndex groupIndex; | 1612 | QModelIndex groupIndex; | ||
1613 | if (notifyModel) { | 1613 | if (notifyModel) { | ||
1614 | groupIndex = model->indexForGroup(this); | 1614 | groupIndex = model->indexForGroup(this); | ||
▲ Show 20 Lines • Show All 823 Lines • Show Last 20 Lines |