diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-26 02:19:19 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-26 02:19:19 +0900 |
| commit | b727f4b3b1957bec28a350575237b93f8f278cdb (patch) | |
| tree | 798a12c2a92121c5683a7a0338fdaec289e1c7fd /lib/kofficecore/kkbdaccessextensions.cpp | |
| parent | dcc4dc7a89e5f5f7fb4217815b892f4b0106d5a0 (diff) | |
| download | koffice-b727f4b3b1957bec28a350575237b93f8f278cdb.tar.gz koffice-b727f4b3b1957bec28a350575237b93f8f278cdb.zip | |
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib/kofficecore/kkbdaccessextensions.cpp')
| -rw-r--r-- | lib/kofficecore/kkbdaccessextensions.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/kofficecore/kkbdaccessextensions.cpp b/lib/kofficecore/kkbdaccessextensions.cpp index 646606d05..3ef20eb52 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(); |
