diff options
Diffstat (limited to 'kexi/plugins/forms/widgets/kexidbcombobox.cpp')
| -rw-r--r-- | kexi/plugins/forms/widgets/kexidbcombobox.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/kexi/plugins/forms/widgets/kexidbcombobox.cpp b/kexi/plugins/forms/widgets/kexidbcombobox.cpp index afe2e3aa2..d9e33b9bc 100644 --- a/kexi/plugins/forms/widgets/kexidbcombobox.cpp +++ b/kexi/plugins/forms/widgets/kexidbcombobox.cpp @@ -239,7 +239,7 @@ TQRect KexiDBComboBox::buttonGeometry() const  bool KexiDBComboBox::handleMousePressEvent(TQMouseEvent *e)  { -	if ( e->button() != Qt::LeftButton || d->designMode ) +	if ( e->button() != TQt::LeftButton || d->designMode )  		return true;  /*todo	if ( m_discardNextMousePress ) {  		d->discardNextMousePress = FALSE; @@ -270,9 +270,9 @@ bool KexiDBComboBox::handleMousePressEvent(TQMouseEvent *e)  bool KexiDBComboBox::handleKeyPressEvent(TQKeyEvent *ke)  {  	const int k = ke->key(); -	const bool dropDown = (ke->state() == Qt::NoButton && ((k==TQt::Key_F2 && !d->isEditable) || k==TQt::Key_F4)) +	const bool dropDown = (ke->state() == TQt::NoButton && ((k==TQt::Key_F2 && !d->isEditable) || k==TQt::Key_F4))  		|| (ke->state() == TQt::AltButton && k==TQt::Key_Down); -	const bool escPressed = ke->state() == Qt::NoButton && k==TQt::Key_Escape; +	const bool escPressed = ke->state() == TQt::NoButton && k==TQt::Key_Escape;  	const bool popupVisible =  popup() && popup()->isVisible();  	if ((dropDown || escPressed) && popupVisible) {  		popup()->hide(); @@ -302,12 +302,12 @@ bool KexiDBComboBox::keyPressed(TQKeyEvent *ke)  	const int k = ke->key();  	const bool popupVisible =  popup() && popup()->isVisible(); -	const bool escPressed = ke->state() == Qt::NoButton && k==TQt::Key_Escape; +	const bool escPressed = ke->state() == TQt::NoButton && k==TQt::Key_Escape;  	if (escPressed && popupVisible) {  		popup()->hide();  		return true;  	} -	if (ke->state() == Qt::NoButton && (k==TQt::Key_PageDown || k==TQt::Key_PageUp) && popupVisible) +	if (ke->state() == TQt::NoButton && (k==TQt::Key_PageDown || k==TQt::Key_PageUp) && popupVisible)  		return true;  	return false;  } | 
