|
|
@ -643,13 +643,13 @@ bool KviTopicWidget::eventFilter(TQObject *object,TQEvent *e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
switch( e->type() ) {
|
|
|
|
switch( e->type() ) {
|
|
|
|
case TQEvent::MouseButtonPress:
|
|
|
|
case TQEvent::MouseButtonPress:
|
|
|
|
if ( TQT_TQRECT_OBJECT(m_pCompletionBox->rect()).contains( ((TQMouseEvent*)e)->pos() ) ) {
|
|
|
|
if ( m_pCompletionBox->rect().contains( ((TQMouseEvent*)e)->pos() ) ) {
|
|
|
|
complete(m_pCompletionBox->index(m_pCompletionBox->itemAt(((TQMouseEvent*)e)->pos())));
|
|
|
|
complete(m_pCompletionBox->index(m_pCompletionBox->itemAt(((TQMouseEvent*)e)->pos())));
|
|
|
|
return TRUE;
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case TQEvent::MouseButtonRelease:
|
|
|
|
case TQEvent::MouseButtonRelease:
|
|
|
|
if ( TQT_TQRECT_OBJECT(m_pCompletionBox->rect()).contains( ((TQMouseEvent*)e)->pos() ) ) {
|
|
|
|
if ( m_pCompletionBox->rect().contains( ((TQMouseEvent*)e)->pos() ) ) {
|
|
|
|
TQMouseEvent tmp( TQEvent::MouseButtonDblClick,
|
|
|
|
TQMouseEvent tmp( TQEvent::MouseButtonDblClick,
|
|
|
|
((TQMouseEvent*)e)->pos(), ((TQMouseEvent*)e)->button(), ((TQMouseEvent*)e)->state() ) ;
|
|
|
|
((TQMouseEvent*)e)->pos(), ((TQMouseEvent*)e)->button(), ((TQMouseEvent*)e)->state() ) ;
|
|
|
|
// will hide popup
|
|
|
|
// will hide popup
|
|
|
|