Esempio n. 1
0
void EditorCompletion::doneCompletion()
{
    m_popup->hide();
    m_editor->setFocus();
    QTreeWidgetItem* item = m_popup->currentItem();
    emit selectedCompletion(item ? item->text(0) : QString());
}
Esempio n. 2
0
void ConstantCompletion::doneCompletion()
{
    m_editor->setFocus();
    const QTreeWidgetItem* item = m_constantWidget->currentItem();
    emit selectedCompletion(item ?
        std::find_if(m_constantList.begin(), m_constantList.end(),
            constant_name_is(item->text(0)))->value
        : QString());
}
Esempio n. 3
0
void EditorCompletion::doneCompletion()
{
    d->completionPopup->close();
    d->editor->setFocus();
    emit selectedCompletion( d->completionListBox->currentText() );
}