summaryrefslogtreecommitdiffstats
path: root/wifi/kwireless/kwirelesswidget.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-09 10:36:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-09 17:21:24 +0900
commit7367a616169a4ec8b35b5a993852c336aaeec25b (patch)
tree2fd2b837621af51718278a66c8d5151fec1d77e8 /wifi/kwireless/kwirelesswidget.cpp
parenta14ec34f576f49ee1abf4844883fb9e3af69eeb3 (diff)
downloadtdenetwork-7367a616169a4ec8b35b5a993852c336aaeec25b.tar.gz
tdenetwork-7367a616169a4ec8b35b5a993852c336aaeec25b.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit b53c83209a6b927b27600899a780db1efc985ecb)
Diffstat (limited to 'wifi/kwireless/kwirelesswidget.cpp')
-rw-r--r--wifi/kwireless/kwirelesswidget.cpp14
1 files changed, 7 insertions, 7 deletions
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<DeviceInfo> *)),
@@ -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);