|
|
|
@ -54,14 +54,14 @@ CKeyReferenceLineEdit::CKeyReferenceLineEdit(TQWidget *parent, const char *name)
|
|
|
|
|
|
|
|
|
|
void CKeyReferenceLineEdit::makeCompletion(const TQString &text) {
|
|
|
|
|
KCompletion *comp = compObj();
|
|
|
|
|
KGlobalSettings::Completion mode = completionMode();
|
|
|
|
|
TDEGlobalSettings::Completion mode = completionMode();
|
|
|
|
|
|
|
|
|
|
if ( !comp || mode == KGlobalSettings::CompletionNone )
|
|
|
|
|
if ( !comp || mode == TDEGlobalSettings::CompletionNone )
|
|
|
|
|
return; // No completion object...
|
|
|
|
|
|
|
|
|
|
TQString match = comp->makeCompletion( text );
|
|
|
|
|
if ( mode == KGlobalSettings::CompletionPopup ||
|
|
|
|
|
mode == KGlobalSettings::CompletionPopupAuto )
|
|
|
|
|
if ( mode == TDEGlobalSettings::CompletionPopup ||
|
|
|
|
|
mode == TDEGlobalSettings::CompletionPopupAuto )
|
|
|
|
|
{
|
|
|
|
|
if ( match.isNull() )
|
|
|
|
|
{
|
|
|
|
@ -150,7 +150,7 @@ void CKeyReferenceWidget::setModule(CSwordBibleModuleInfo *m) {
|
|
|
|
|
delete m_textbox->completionObject();
|
|
|
|
|
CKeyReferenceCompletion *comp = new CKeyReferenceCompletion(m_module);
|
|
|
|
|
m_textbox->setCompletionObject(comp);
|
|
|
|
|
m_textbox->setCompletionMode(KGlobalSettings::CompletionPopup);
|
|
|
|
|
m_textbox->setCompletionMode(TDEGlobalSettings::CompletionPopup);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CKeyReferenceWidget::slotClearRef( ) {
|
|
|
|
|