void EditorCompletion::doneCompletion() { m_popup->hide(); m_editor->setFocus(); QTreeWidgetItem* item = m_popup->currentItem(); emit selectedCompletion(item ? item->text(0) : QString()); }
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()); }
void EditorCompletion::doneCompletion() { d->completionPopup->close(); d->editor->setFocus(); emit selectedCompletion( d->completionListBox->currentText() ); }