diff options
author | Michele Calgaro <[email protected]> | 2023-11-26 02:19:19 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-26 17:27:00 +0900 |
commit | 2891d3c2d54dea1e2dd2a6702ee209b6f01f73f4 (patch) | |
tree | 4f7d24c4476a9ca4a0f836cdaa987d7704af2734 /lib/kofficecore | |
parent | f9893e5b16c7694da25e60805fe751691e127e85 (diff) | |
download | koffice-2891d3c2d54dea1e2dd2a6702ee209b6f01f73f4.tar.gz koffice-2891d3c2d54dea1e2dd2a6702ee209b6f01f73f4.zip |
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit b727f4b3b1957bec28a350575237b93f8f278cdb)
Diffstat (limited to 'lib/kofficecore')
-rw-r--r-- | lib/kofficecore/KoMainWindow.cpp | 2 | ||||
-rw-r--r-- | lib/kofficecore/kkbdaccessextensions.cpp | 16 |
2 files changed, 9 insertions, 9 deletions
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<KoFrame *>( obj ) ) + if ( !obj->isWidgetType() || ::tqt_cast<KoFrame *>( 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<TQSplitter*>( widget )) { + if (::tqt_cast<TQSplitter*>( widget )) { // Only size TQSplitters with at least two handles (there is always one hidden). if (dynamic_cast<TQSplitter *>(widget)->sizes().count() >= 2) allPanels->append(widget); - } else if (::tqqt_cast<TQDockWindow*>( widget )) { + } else if (::tqt_cast<TQDockWindow*>( widget )) { if (dynamic_cast<TQDockWindow *>(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<TQSplitter*>( panel )) + if (::tqt_cast<TQSplitter*>( panel )) advance = (d->handleNdx >= dynamic_cast<TQSplitter *>(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<TQSplitter*>( panel )) + if (::tqt_cast<TQSplitter*>( panel )) d->handleNdx = dynamic_cast<TQSplitter *>(panel)->sizes().count() - 1; else { if (dynamic_cast<TQDockWindow *>(panel)->area()) @@ -361,7 +361,7 @@ void KKbdAccessExtensions::prevHandle() panel = allWidgets->last(); delete allWidgets; if (panel) { - if (::tqqt_cast<TQSplitter*>( panel )) + if (::tqt_cast<TQSplitter*>( panel )) d->handleNdx = dynamic_cast<TQSplitter *>(panel)->sizes().count() - 1; else { if (dynamic_cast<TQDockWindow *>(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<TQSplitter*>( d->panel )) { + if (::tqt_cast<TQSplitter*>( d->panel )) { TQSplitter* splitter = dynamic_cast<TQSplitter *>(d->panel); int handleNdx = d->handleNdx - 1; TQValueList<int> 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<TQSplitter*>( d->panel )) { + if (::tqt_cast<TQSplitter*>( d->panel )) { TQSplitter* splitter = dynamic_cast<TQSplitter *>(d->panel); int handleNdx = d->handleNdx - 1; TQValueList<int> 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<TQDockWindow*>( d->panel )) { + if (key == TQt::Key_Enter && ::tqt_cast<TQDockWindow*>( d->panel )) { TQDockWindow* dockWindow = dynamic_cast<TQDockWindow *>(d->panel); if (dockWindow->area()) dockWindow->undock(); |