示例#1
0
void EditorCompletion::doneCompletion()
{
    m_popup->hide();
    m_editor->setFocus();
    QTreeWidgetItem* item = m_popup->currentItem();
    emit selectedCompletion(item ? item->text(0) : QString());
}
示例#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());
}
示例#3
0
文件: editor.cpp 项目: KDE/abakus
void EditorCompletion::doneCompletion()
{
    d->completionPopup->close();
    d->editor->setFocus();
    emit selectedCompletion( d->completionListBox->currentText() );
}