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