QModelIndex GolangSymbol::filterChanged(const QString &text) { m_proxy->setFilterFixedString(text); for (int i = 0; i < m_proxy->rowCount(); i++) { QModelIndex index = m_proxy->index(i,0); if (index.data().toString().startsWith(text,m_matchCase)) { gotoIndex(index,false); return index; } } return m_proxy->index(0,0); }
void CKJVPassageNavigatorDlg::accept() { emit gotoIndex(passage()); QDialog::accept(); }
bool GolangSymbol::selected(const QString &/*text*/, const QModelIndex &index) { return gotoIndex(index,false); }
void GolangSymbol::indexChanged(const QModelIndex &index) { gotoIndex(index,false); }