|
|
|
@ -169,7 +169,7 @@ void KviTextIconWindow::keyPressEvent(TQKeyEvent *e)
|
|
|
|
|
((KviInputEditor *)m_pOwner)->insertText(szItem);
|
|
|
|
|
else if(m_pOwner->inherits("KviInput"))
|
|
|
|
|
((KviInput *)m_pOwner)->insertText(szItem);
|
|
|
|
|
else if(m_pOwner->inherits(TQLINEEDIT_OBJECT_NAME_STRING))
|
|
|
|
|
else if(m_pOwner->inherits("TQLineEdit"))
|
|
|
|
|
{
|
|
|
|
|
TQString tmp = ((TQLineEdit *)m_pOwner)->text();
|
|
|
|
|
tmp.insert(((TQLineEdit *)m_pOwner)->cursorPosition(),szItem);
|
|
|
|
@ -192,7 +192,7 @@ void KviTextIconWindow::keyPressEvent(TQKeyEvent *e)
|
|
|
|
|
((KviInputEditor *)m_pOwner)->insertText(szItem);
|
|
|
|
|
else if(m_pOwner->inherits("KviInput"))
|
|
|
|
|
((KviInput *)m_pOwner)->insertText(szItem);
|
|
|
|
|
else if(m_pOwner->inherits(TQLINEEDIT_OBJECT_NAME_STRING))
|
|
|
|
|
else if(m_pOwner->inherits("TQLineEdit"))
|
|
|
|
|
{
|
|
|
|
|
TQString tmp = ((TQLineEdit *)m_pOwner)->text();
|
|
|
|
|
tmp.insert(((TQLineEdit *)m_pOwner)->cursorPosition(),szItem);
|
|
|
|
@ -246,7 +246,7 @@ void KviTextIconWindow::itemSelected(KviTalIconViewItem * item)
|
|
|
|
|
{
|
|
|
|
|
if(item)
|
|
|
|
|
{
|
|
|
|
|
// tqDebug("%i %i %i %s",m_pOwner->inherits("KviInputEditor"),m_pOwner->inherits("KviInput"),m_pOwner->inherits(TQLINEEDIT_OBJECT_NAME_STRING),m_pOwner->className());
|
|
|
|
|
// tqDebug("%i %i %i %s",m_pOwner->inherits("KviInputEditor"),m_pOwner->inherits("KviInput"),m_pOwner->inherits("TQLineEdit"),m_pOwner->className());
|
|
|
|
|
doHide();
|
|
|
|
|
TQString szItem = item->text();
|
|
|
|
|
szItem.append(' ');
|
|
|
|
@ -255,7 +255,7 @@ void KviTextIconWindow::itemSelected(KviTalIconViewItem * item)
|
|
|
|
|
((KviInputEditor *)m_pOwner)->insertText(szItem);
|
|
|
|
|
else if(m_pOwner->inherits("KviInput"))
|
|
|
|
|
((KviInput *)m_pOwner)->insertText(szItem);
|
|
|
|
|
else if(m_pOwner->inherits(TQLINEEDIT_OBJECT_NAME_STRING))
|
|
|
|
|
else if(m_pOwner->inherits("TQLineEdit"))
|
|
|
|
|
{
|
|
|
|
|
TQString tmp = ((TQLineEdit *)m_pOwner)->text();
|
|
|
|
|
tmp.insert(((TQLineEdit *)m_pOwner)->cursorPosition(),szItem);
|
|
|
|
|