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