summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/forms/widgets/kexidbcombobox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/forms/widgets/kexidbcombobox.cpp')
-rw-r--r--kexi/plugins/forms/widgets/kexidbcombobox.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kexi/plugins/forms/widgets/kexidbcombobox.cpp b/kexi/plugins/forms/widgets/kexidbcombobox.cpp
index 088d0a48..5fb89443 100644
--- a/kexi/plugins/forms/widgets/kexidbcombobox.cpp
+++ b/kexi/plugins/forms/widgets/kexidbcombobox.cpp
@@ -338,7 +338,7 @@ bool KexiDBComboBox::eventFilter( TQObject *o, TQEvent *e )
}
else if (e->type()==TQEvent::Enter) {
if (!d->isEditable
- || /*over button if editable combo*/buttonGeometry().contains( TQT_TQMOUSEEVENT(e)->pos() ))
+ || /*over button if editable combo*/buttonGeometry().contains( static_cast<TQMouseEvent*>(e)->pos() ))
{
d->mouseOver = true;
update();
@@ -346,7 +346,7 @@ bool KexiDBComboBox::eventFilter( TQObject *o, TQEvent *e )
}
else if (e->type()==TQEvent::MouseMove) {
if (d->isEditable) {
- const bool overButton = buttonGeometry().contains( TQT_TQMOUSEEVENT(e)->pos() );
+ const bool overButton = buttonGeometry().contains( static_cast<TQMouseEvent*>(e)->pos() );
if (overButton != d->mouseOver) {
d->mouseOver = overButton;
update();
@@ -359,7 +359,7 @@ bool KexiDBComboBox::eventFilter( TQObject *o, TQEvent *e )
}
else if (e->type()==TQEvent::KeyPress) {
// handle F2/F4
- if (handleKeyPressEvent(TQT_TQKEYEVENT(e)))
+ if (handleKeyPressEvent(static_cast<TQKeyEvent*>(e)))
return true;
}
else if (e->type()==TQEvent::FocusOut) {
@@ -372,11 +372,11 @@ bool KexiDBComboBox::eventFilter( TQObject *o, TQEvent *e )
else if (!d->isEditable && d->subWidgetsWithDisabledEvents && d->subWidgetsWithDisabledEvents->find(o)) {
if (e->type()==TQEvent::MouseButtonPress) {
// clicking the subwidget should mean the same as clicking the combo box (i.e. show the popup)
- if (handleMousePressEvent(TQT_TQMOUSEEVENT(e)))
+ if (handleMousePressEvent(static_cast<TQMouseEvent*>(e)))
return true;
}
else if (e->type()==TQEvent::KeyPress) {
- if (handleKeyPressEvent(TQT_TQKEYEVENT(e)))
+ if (handleKeyPressEvent(static_cast<TQKeyEvent*>(e)))
return true;
}
return e->type()!=TQEvent::Paint;