summaryrefslogtreecommitdiffstats
path: root/kexi/widget/tableview/kexicomboboxtableedit.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-30 20:43:20 +0900
committerMichele Calgaro <[email protected]>2023-11-30 21:03:28 +0900
commitd7ae9fb514226c126e04cfe4f34800beb9f4ea19 (patch)
tree4d12f786f3541b9ff0225f0ceb2bec0b9268a163 /kexi/widget/tableview/kexicomboboxtableedit.cpp
parentb727f4b3b1957bec28a350575237b93f8f278cdb (diff)
downloadkoffice-d7ae9fb514226c126e04cfe4f34800beb9f4ea19.tar.gz
koffice-d7ae9fb514226c126e04cfe4f34800beb9f4ea19.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kexi/widget/tableview/kexicomboboxtableedit.cpp')
-rw-r--r--kexi/widget/tableview/kexicomboboxtableedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexi/widget/tableview/kexicomboboxtableedit.cpp b/kexi/widget/tableview/kexicomboboxtableedit.cpp
index a818e40b..0ac9923e 100644
--- a/kexi/widget/tableview/kexicomboboxtableedit.cpp
+++ b/kexi/widget/tableview/kexicomboboxtableedit.cpp
@@ -348,7 +348,7 @@ int KexiComboBoxTableEdit::widthForValue( TQVariant &val, const TQFontMetrics &f
bool KexiComboBoxTableEdit::eventFilter( TQObject *o, TQEvent *e )
{
if (!column()->isReadOnly() && e->type()==TQEvent::MouseButtonPress && m_scrollView) {
- TQPoint gp = TQT_TQMOUSEEVENT(e)->globalPos()
+ TQPoint gp = static_cast<TQMouseEvent*>(e)->globalPos()
+ TQPoint(m_scrollView->childX(d->button), m_scrollView->childY(d->button));
TQRect r(d->button->mapToGlobal(d->button->geometry().topLeft()),
d->button->mapToGlobal(d->button->geometry().bottomRight()));