summaryrefslogtreecommitdiffstats
path: root/wifi/kwireless
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 10:36:57 +0900
commitb53c83209a6b927b27600899a780db1efc985ecb (patch)
tree5669b200cf24a8e47338ab2054daf3a58264925f /wifi/kwireless
parent82b0c5074d73953b9d00fa7b8c17115bb4bc900e (diff)
downloadtdenetwork-b53c83209a6b927b27600899a780db1efc985ecb.tar.gz
tdenetwork-b53c83209a6b927b27600899a780db1efc985ecb.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'wifi/kwireless')
-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);