Example #1
0
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();
}
Example #3
0
bool GolangSymbol::selected(const QString &/*text*/, const QModelIndex &index)
{
    return gotoIndex(index,false);
}
Example #4
0
void GolangSymbol::indexChanged(const QModelIndex &index)
{
    gotoIndex(index,false);
}