diff options
author | Michele Calgaro <[email protected]> | 2023-11-13 21:03:36 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-14 12:59:42 +0900 |
commit | a49b0e2c531c81e420dc103b5130e2fa8643f46d (patch) | |
tree | 42ee6213b300c2366208f6c122bee39845b5a89c /kicker/extensions/dockbar | |
parent | 36eda89f538b610db9dbda129d7c8e81089caf1a (diff) | |
download | tdebase-a49b0e2c531c81e420dc103b5130e2fa8643f46d.tar.gz tdebase-a49b0e2c531c81e420dc103b5130e2fa8643f46d.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit b965cbac5b21345e9dfc768a7e4f660ffa4aa72f)
Diffstat (limited to 'kicker/extensions/dockbar')
-rw-r--r-- | kicker/extensions/dockbar/dockbarextension.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kicker/extensions/dockbar/dockbarextension.cpp b/kicker/extensions/dockbar/dockbarextension.cpp index 446991109..cbd336f6f 100644 --- a/kicker/extensions/dockbar/dockbarextension.cpp +++ b/kicker/extensions/dockbar/dockbarextension.cpp @@ -174,7 +174,7 @@ void DockBarExtension::layoutContainers() it != containers.constEnd(); ++it) { - if (orientation() == Qt::Horizontal) + if (orientation() == TQt::Horizontal) (*it)->move(DockContainer::sz() * i, 0); else (*it)->move(0, DockContainer::sz() * i); @@ -345,17 +345,17 @@ int DockBarExtension::findContainerAtPoint(const TQPoint& p) } void DockBarExtension::mousePressEvent(TQMouseEvent *e ) { - if (e->button() == Qt::LeftButton) { + if (e->button() == TQt::LeftButton) { // Store the position of the mouse clic. mclic_pos = e->pos(); - } else if (e->button() == Qt::RightButton) { + } else if (e->button() == TQt::RightButton) { int pos = findContainerAtPoint(e->pos()); if (pos != -1) containers.at(pos)->popupMenu(e->globalPos()); } } void DockBarExtension::mouseReleaseEvent(TQMouseEvent *e ) { - if (e->button() != Qt::LeftButton) return; + if (e->button() != TQt::LeftButton) return; if (dragging_container) { releaseMouse(); original_container->embed(dragging_container->embeddedWinId()); @@ -366,7 +366,7 @@ void DockBarExtension::mouseReleaseEvent(TQMouseEvent *e ) { } void DockBarExtension::mouseMoveEvent(TQMouseEvent *e) { - if (! (e->state() & Qt::LeftButton) ) return; + if (! (e->state() & TQt::LeftButton) ) return; if (dragging_container == 0) { // Check whether the user has moved far enough. int delay = TQApplication::startDragDistance(); @@ -393,7 +393,7 @@ void DockBarExtension::mouseMoveEvent(TQMouseEvent *e) { int pdrag1,pdrag2,psz; pdrag1 = dragpos.x() - barpos.x() + DockContainer::sz()/2; pdrag2 = dragpos.y() - barpos.y() + DockContainer::sz()/2; - if (orientation() == Qt::Vertical) { + if (orientation() == TQt::Vertical) { int tmp = pdrag1; pdrag1 = pdrag2; pdrag2 = tmp; psz = height(); } else psz = width(); |