From de4276a79e6b558d97a04cfc8495c7e0eba428b3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 5 Nov 2023 15:23:32 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro (cherry picked from commit 11a85e9bc6b0e4426266b4dcc190c08c75c6ca13) --- src/chart.cpp | 2 +- src/knetstatsview.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/chart.cpp b/src/chart.cpp index 8af9d1e..4e06b4d 100644 --- a/src/chart.cpp +++ b/src/chart.cpp @@ -30,7 +30,7 @@ Chart::Chart(TQWidget* parent, const double* uploadBuffer, const double* downloa void Chart::paintEvent(TQPaintEvent*) { TQPainter paint(this); paint.setBackgroundColor(TQt::black); - paint.setBackgroundMode(Qt::OpaqueMode); + paint.setBackgroundMode(TQt::OpaqueMode); TQBrush brush(TQColor(0x33, 0x33, 0x33), CrossPattern); paint.fillRect(0, 0, width(), height(), brush); diff --git a/src/knetstatsview.cpp b/src/knetstatsview.cpp index 72af3b4..828413f 100644 --- a/src/knetstatsview.cpp +++ b/src/knetstatsview.cpp @@ -340,9 +340,9 @@ void KNetStatsView::drawGraphic(TQPainter& paint) { } void KNetStatsView::mousePressEvent(TQMouseEvent* ev) { - if (ev->button() == Qt::RightButton ) + if (ev->button() == TQt::RightButton ) mContextMenu->exec(TQCursor::pos()); - else if (ev->button() == Qt::LeftButton) + else if (ev->button() == TQt::LeftButton) if (mStatistics->isShown()) mStatistics->accept(); else -- cgit v1.2.1