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) --- wifi/kwireless/kwirelesswidget.cpp | 14 +++++++------- wifi/status.cpp | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'wifi') diff --git a/wifi/kwireless/kwirelesswidget.cpp b/wifi/kwireless/kwirelesswidget.cpp index e7b6a719..ada6cabb 100644 --- a/wifi/kwireless/kwirelesswidget.cpp +++ b/wifi/kwireless/kwirelesswidget.cpp @@ -183,7 +183,7 @@ void KWireLessWidget::setMode(KWireLessWidget::Mode _mode) void KWireLessWidget::mousePressEvent(TQMouseEvent *e) { - if( e->button() == Qt::LeftButton) + if( e->button() == TQt::LeftButton) { PropertiesDialog dialog(this); connect(this, TQT_SIGNAL(updateDeviceInfo(TQPtrList *)), @@ -206,7 +206,7 @@ void KWireLessWidget::paintEvent(TQPaintEvent*) // non-nil): space = 3 * frameWidth + qualityBarWidth + signalBarWidth + noiseBarWidth+1; - if(mode ==Qt::Horizontal) + if(mode ==TQt::Horizontal) { h = space; w = width(); @@ -221,11 +221,11 @@ void KWireLessWidget::paintEvent(TQPaintEvent*) painter.drawRect(0, 0, w, h); int x = qualityBarWidth + frameWidth; - mode ==Qt::Vertical + mode ==TQt::Vertical ? painter.drawLine(x, frameWidth, x, h-frameWidth) : painter.drawLine(frameWidth, x, w-frameWidth, x); x += signalBarWidth + frameWidth; - mode ==Qt::Vertical + mode ==TQt::Vertical ? painter.drawLine(x, frameWidth, x, h-frameWidth) : painter.drawLine(frameWidth, x, w-frameWidth, x); @@ -247,7 +247,7 @@ void KWireLessWidget::paintEvent(TQPaintEvent*) color = TQt::darkGreen; brush = TQt::green; }; - if(mode ==Qt::Vertical) + if(mode ==TQt::Vertical) { int position = (int)(((float)(h-2*frameWidth))*(1-device->quality())+0.5); @@ -275,7 +275,7 @@ void KWireLessWidget::paintEvent(TQPaintEvent*) painter.setPen(TQPen(TQt::darkRed)); painter.setBrush(TQt::red); - if(mode ==Qt::Vertical) + if(mode ==TQt::Vertical) { int x = 2 * frameWidth + qualityBarWidth; int h1 = (int)(((float)(h-2*frameWidth))*(1-device->signal())+0.5); @@ -292,7 +292,7 @@ void KWireLessWidget::paintEvent(TQPaintEvent*) painter.setPen(TQPen(TQt::gray)); painter.setBrush(TQt::lightGray); - if(mode ==Qt::Vertical) + if(mode ==TQt::Vertical) { int x = 3 * frameWidth + qualityBarWidth + signalBarWidth; int h1 = (int)(((float)(h-2*frameWidth))*(1-device->noise())+0.5); diff --git a/wifi/status.cpp b/wifi/status.cpp index 3632342e..65c264c9 100644 --- a/wifi/status.cpp +++ b/wifi/status.cpp @@ -38,7 +38,7 @@ bool Status::generateStatsWidget () qual = 0; device->get_current_quality (sig, noi, qual); content = - new TQGroupBox (2, Qt::Horizontal, i18n ("Status of Active Connection"), + new TQGroupBox (2, TQt::Horizontal, i18n ("Status of Active Connection"), this); bool has_freq = device->get_device_freq (freq); if ((!has_freq) || (qual == 0)) -- cgit v1.2.1