From 7367a616169a4ec8b35b5a993852c336aaeec25b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 9 Nov 2023 10:36:57 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro (cherry picked from commit b53c83209a6b927b27600899a780db1efc985ecb) --- kpf/src/Applet.cpp | 12 ++++++------ kpf/src/Applet.h | 2 +- kpf/src/AppletItem.cpp | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'kpf/src') diff --git a/kpf/src/Applet.cpp b/kpf/src/Applet.cpp index 0ee0b264..dca2c4aa 100644 --- a/kpf/src/Applet.cpp +++ b/kpf/src/Applet.cpp @@ -148,7 +148,7 @@ namespace KPF if (0 == serverCount) serverCount = 1; - if (Qt::Vertical == orientation()) + if (TQt::Vertical == orientation()) return h / serverCount; else return h * serverCount; @@ -162,7 +162,7 @@ namespace KPF if (0 == serverCount) serverCount = 1; - if (Qt::Vertical == orientation()) + if (TQt::Vertical == orientation()) return w * serverCount; else return w / serverCount; @@ -220,7 +220,7 @@ namespace KPF } void - Applet::orientationChange(Qt::Orientation) + Applet::orientationChange(TQt::Orientation) { resetLayout(); } @@ -248,7 +248,7 @@ namespace KPF switch (orientation()) { - case Qt::Vertical: + case TQt::Vertical: { uint itemHeight = height() / itemList_.count(); @@ -262,7 +262,7 @@ namespace KPF } break; - case Qt::Horizontal: + case TQt::Horizontal: { uint itemWidth = width() / itemList_.count(); @@ -282,7 +282,7 @@ namespace KPF void Applet::mousePressEvent(TQMouseEvent * ev) { - if (Qt::RightButton != ev->button() && Qt::LeftButton != ev->button()) + if (TQt::RightButton != ev->button() && TQt::LeftButton != ev->button()) return; switch (popup_->exec(TQCursor::pos())) diff --git a/kpf/src/Applet.h b/kpf/src/Applet.h index 185a36be..74e87d59 100644 --- a/kpf/src/Applet.h +++ b/kpf/src/Applet.h @@ -124,7 +124,7 @@ namespace KPF * Overridden to keep track of orientation change and update layout * accordingly. */ - virtual void orientationChange(Qt::Orientation); + virtual void orientationChange(TQt::Orientation); /** * Overridden to update layout accordingly. diff --git a/kpf/src/AppletItem.cpp b/kpf/src/AppletItem.cpp index 2a8e22d3..3a3b9021 100644 --- a/kpf/src/AppletItem.cpp +++ b/kpf/src/AppletItem.cpp @@ -137,7 +137,7 @@ namespace KPF break; } - if (Qt::LeftButton == e->button()) + if (TQt::LeftButton == e->button()) { // Show monitor. @@ -168,7 +168,7 @@ namespace KPF break; } - if (Qt::RightButton != e->button() && Qt::LeftButton != e->button()) + if (TQt::RightButton != e->button() && TQt::LeftButton != e->button()) break; if (server_->paused()) -- cgit v1.2.1