From 2891d3c2d54dea1e2dd2a6702ee209b6f01f73f4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 26 Nov 2023 02:19:19 +0900 Subject: Replaced various '#define' with actual strings - part 4 Signed-off-by: Michele Calgaro (cherry picked from commit b727f4b3b1957bec28a350575237b93f8f278cdb) --- lib/kofficecore/KoMainWindow.cpp | 2 +- lib/kofficecore/kkbdaccessextensions.cpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'lib/kofficecore') diff --git a/lib/kofficecore/KoMainWindow.cpp b/lib/kofficecore/KoMainWindow.cpp index 3641f58c..a1675514 100644 --- a/lib/kofficecore/KoMainWindow.cpp +++ b/lib/kofficecore/KoMainWindow.cpp @@ -76,7 +76,7 @@ public: } virtual bool eventFilter( TQObject *obj, TQEvent *ev ) { - if ( !obj->isWidgetType() || ::tqqt_cast( obj ) ) + if ( !obj->isWidgetType() || ::tqt_cast( obj ) ) return false; return KParts::PartManager::eventFilter( obj, ev ); } diff --git a/lib/kofficecore/kkbdaccessextensions.cpp b/lib/kofficecore/kkbdaccessextensions.cpp index 646606d0..3ef20eb5 100644 --- a/lib/kofficecore/kkbdaccessextensions.cpp +++ b/lib/kofficecore/kkbdaccessextensions.cpp @@ -279,11 +279,11 @@ TQWidgetList* KKbdAccessExtensions::getAllPanels() TQWidget* widget = allWidgets->first(); while (widget) { if (widget->isVisible()) { - if (::tqqt_cast( widget )) { + if (::tqt_cast( widget )) { // Only size TQSplitters with at least two handles (there is always one hidden). if (dynamic_cast(widget)->sizes().count() >= 2) allPanels->append(widget); - } else if (::tqqt_cast( widget )) { + } else if (::tqt_cast( widget )) { if (dynamic_cast(widget)->isResizeEnabled()) { // kdDebug() << "KKbdAccessExtensions::getAllPanels: TQDockWindow = " << widget->name() << endl; allPanels->append(widget); @@ -303,7 +303,7 @@ void KKbdAccessExtensions::nextHandle() if (panel) { bool advance = true; d->handleNdx++; - if (::tqqt_cast( panel )) + if (::tqt_cast( panel )) advance = (d->handleNdx >= dynamic_cast(panel)->sizes().count()); else // Undocked windows have only one "handle" (center). @@ -345,7 +345,7 @@ void KKbdAccessExtensions::prevHandle() if (allWidgets->current()) panel = allWidgets->prev(); delete allWidgets; if (panel) { - if (::tqqt_cast( panel )) + if (::tqt_cast( panel )) d->handleNdx = dynamic_cast(panel)->sizes().count() - 1; else { if (dynamic_cast(panel)->area()) @@ -361,7 +361,7 @@ void KKbdAccessExtensions::prevHandle() panel = allWidgets->last(); delete allWidgets; if (panel) { - if (::tqqt_cast( panel )) + if (::tqt_cast( panel )) d->handleNdx = dynamic_cast(panel)->sizes().count() - 1; else { if (dynamic_cast(panel)->area()) @@ -391,7 +391,7 @@ void KKbdAccessExtensions::showIcon() if (!d->panel) return; TQPoint p; // kdDebug() << "KKbdAccessExtensions::showIcon: topLevelWidget = " << d->panel->topLevelWidget()->name() << endl; - if (::tqqt_cast( d->panel )) { + if (::tqt_cast( d->panel )) { TQSplitter* splitter = dynamic_cast(d->panel); int handleNdx = d->handleNdx - 1; TQValueList sizes = splitter->sizes(); @@ -461,7 +461,7 @@ void KKbdAccessExtensions::resizePanel(int dx, int dy, int state) int adj = dx + dy; if (adj == 0) return; // kdDebug() << "KKbdAccessExtensions::resizePanel: panel = " << d->panel->name() << endl; - if (::tqqt_cast( d->panel )) { + if (::tqt_cast( d->panel )) { TQSplitter* splitter = dynamic_cast(d->panel); int handleNdx = d->handleNdx - 1; TQValueList sizes = splitter->sizes(); @@ -534,7 +534,7 @@ void KKbdAccessExtensions::resizePanelFromKey(int key, int state) if (adj != 0) resizePanel(dx, dy, state); else { - if (key == TQt::Key_Enter && ::tqqt_cast( d->panel )) { + if (key == TQt::Key_Enter && ::tqt_cast( d->panel )) { TQDockWindow* dockWindow = dynamic_cast(d->panel); if (dockWindow->area()) dockWindow->undock(); -- cgit v1.2.1