diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-11 21:42:08 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-11 21:42:08 +0900 |
| commit | 20e4a19b0d7cc800d57be50c56d69023adae4046 (patch) | |
| tree | 522b0ae95b8f7e9ee59a3b405de24b2dd8180bc4 /kexi/formeditor/container.cpp | |
| parent | c2fdb394e63c0df50f1a38eace1077a9151374ce (diff) | |
| download | koffice-20e4a19b0d7cc800d57be50c56d69023adae4046.tar.gz koffice-20e4a19b0d7cc800d57be50c56d69023adae4046.zip | |
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kexi/formeditor/container.cpp')
| -rw-r--r-- | kexi/formeditor/container.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kexi/formeditor/container.cpp b/kexi/formeditor/container.cpp index a785893fa..4ea7f97ee 100644 --- a/kexi/formeditor/container.cpp +++ b/kexi/formeditor/container.cpp @@ -61,7 +61,7 @@ EventEater::eventFilter(TQObject *, TQEvent *ev) // When the user click the empty part of tab bar, only MouseReleaseEvent is sent, // we need to simulate the Press event - if(ev->type() == TQEvent::MouseButtonRelease && m_widget->inherits(TQTABWIDGET_OBJECT_NAME_STRING)) + if(ev->type() == TQEvent::MouseButtonRelease && m_widget->inherits("TQTabWidget")) { TQMouseEvent *mev = TQT_TQMOUSEEVENT(ev); if(mev->button() == Qt::LeftButton) @@ -225,7 +225,7 @@ Container::eventFilter(TQObject *s, TQEvent *e) m_state = DrawingSelectionRect; } else { - if(s->inherits(TQTABWIDGET_OBJECT_NAME_STRING)) // to allow changing page by clicking tab + if(s->inherits("TQTabWidget")) // to allow changing page by clicking tab return false; } @@ -299,7 +299,7 @@ Container::eventFilter(TQObject *s, TQEvent *e) { if(!m_toplevel && m_moving == m_container) // no effect for form return false; - if((!m_moving) || (!m_moving->parentWidget()))// || (m_moving->parentWidget()->inherits(TQWIDGETSTACK_OBJECT_NAME_STRING))) + if((!m_moving) || (!m_moving->parentWidget()))// || (m_moving->parentWidget()->inherits("TQWidgetStack"))) return true; moveSelectedWidgetsBy(mev->x() - m_grab.x(), mev->y() - m_grab.y()); @@ -1107,13 +1107,13 @@ Container::moveSelectedWidgetsBy(int realdx, int realdy, TQMouseEvent *mev) for(TQWidget *w = m_form->selectedWidgets()->first(); w; w = m_form->selectedWidgets()->next()) { - if(!w || !w->parent() || w->parent()->inherits(TQTABWIDGET_OBJECT_NAME_STRING) || w->parent()->inherits(TQWIDGETSTACK_OBJECT_NAME_STRING)) + if(!w || !w->parent() || w->parent()->inherits("TQTabWidget") || w->parent()->inherits("TQWidgetStack")) continue; - if(w->parentWidget() && w->parentWidget()->isA(TQWIDGETSTACK_OBJECT_NAME_STRING)) + if(w->parentWidget() && w->parentWidget()->isA("TQWidgetStack")) { w = w->parentWidget(); // widget is WidgetStack page - if(w->parentWidget() && w->parentWidget()->inherits(TQTABWIDGET_OBJECT_NAME_STRING)) // widget is tabwidget page + if(w->parentWidget() && w->parentWidget()->inherits("TQTabWidget")) // widget is tabwidget page w = w->parentWidget(); } @@ -1133,13 +1133,13 @@ Container::moveSelectedWidgetsBy(int realdx, int realdy, TQMouseEvent *mev) for(TQWidget *w = m_form->selectedWidgets()->first(); w; w = m_form->selectedWidgets()->next()) { // Don't move tab widget pages (or widget stack pages) - if(!w || !w->parent() || w->parent()->inherits(TQTABWIDGET_OBJECT_NAME_STRING) || w->parent()->inherits(TQWIDGETSTACK_OBJECT_NAME_STRING)) + if(!w || !w->parent() || w->parent()->inherits("TQTabWidget") || w->parent()->inherits("TQWidgetStack")) continue; - if(w->parentWidget() && w->parentWidget()->isA(TQWIDGETSTACK_OBJECT_NAME_STRING)) + if(w->parentWidget() && w->parentWidget()->isA("TQWidgetStack")) { w = w->parentWidget(); // widget is WidgetStack page - if(w->parentWidget() && w->parentWidget()->inherits(TQTABWIDGET_OBJECT_NAME_STRING)) // widget is tabwidget page + if(w->parentWidget() && w->parentWidget()->inherits("TQTabWidget")) // widget is tabwidget page w = w->parentWidget(); } |
