|
|
@ -32,7 +32,7 @@
|
|
|
|
#include <kguiitem.h>
|
|
|
|
#include <kguiitem.h>
|
|
|
|
|
|
|
|
|
|
|
|
/* Override the completion box for our references */
|
|
|
|
/* Override the completion box for our references */
|
|
|
|
CKeyReferenceCompletion::CKeyReferenceCompletion(CSwordBibleModuleInfo *mod) : KCompletion()
|
|
|
|
CKeyReferenceCompletion::CKeyReferenceCompletion(CSwordBibleModuleInfo *mod) : TDECompletion()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_key = new CSwordVerseKey(mod);
|
|
|
|
m_key = new CSwordVerseKey(mod);
|
|
|
|
m_module = mod;
|
|
|
|
m_module = mod;
|
|
|
@ -53,7 +53,7 @@ CKeyReferenceLineEdit::CKeyReferenceLineEdit(TQWidget *parent, const char *name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CKeyReferenceLineEdit::makeCompletion(const TQString &text) {
|
|
|
|
void CKeyReferenceLineEdit::makeCompletion(const TQString &text) {
|
|
|
|
KCompletion *comp = compObj();
|
|
|
|
TDECompletion *comp = compObj();
|
|
|
|
TDEGlobalSettings::Completion mode = completionMode();
|
|
|
|
TDEGlobalSettings::Completion mode = completionMode();
|
|
|
|
|
|
|
|
|
|
|
|
if ( !comp || mode == TDEGlobalSettings::CompletionNone )
|
|
|
|
if ( !comp || mode == TDEGlobalSettings::CompletionNone )
|
|
|
@ -65,7 +65,7 @@ void CKeyReferenceLineEdit::makeCompletion(const TQString &text) {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ( match.isNull() )
|
|
|
|
if ( match.isNull() )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KCompletionBox *compbox = completionBox();
|
|
|
|
TDECompletionBox *compbox = completionBox();
|
|
|
|
compbox->hide();
|
|
|
|
compbox->hide();
|
|
|
|
compbox->clear();
|
|
|
|
compbox->clear();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|