Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/7/head
Michele Calgaro 1 year ago
parent e18aea39eb
commit 11a85e9bc6
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -30,7 +30,7 @@ Chart::Chart(TQWidget* parent, const double* uploadBuffer, const double* downloa
void Chart::paintEvent(TQPaintEvent*) { void Chart::paintEvent(TQPaintEvent*) {
TQPainter paint(this); TQPainter paint(this);
paint.setBackgroundColor(TQt::black); paint.setBackgroundColor(TQt::black);
paint.setBackgroundMode(Qt::OpaqueMode); paint.setBackgroundMode(TQt::OpaqueMode);
TQBrush brush(TQColor(0x33, 0x33, 0x33), CrossPattern); TQBrush brush(TQColor(0x33, 0x33, 0x33), CrossPattern);
paint.fillRect(0, 0, width(), height(), brush); paint.fillRect(0, 0, width(), height(), brush);

@ -340,9 +340,9 @@ void KNetStatsView::drawGraphic(TQPainter& paint) {
} }
void KNetStatsView::mousePressEvent(TQMouseEvent* ev) { void KNetStatsView::mousePressEvent(TQMouseEvent* ev) {
if (ev->button() == Qt::RightButton ) if (ev->button() == TQt::RightButton )
mContextMenu->exec(TQCursor::pos()); mContextMenu->exec(TQCursor::pos());
else if (ev->button() == Qt::LeftButton) else if (ev->button() == TQt::LeftButton)
if (mStatistics->isShown()) if (mStatistics->isShown())
mStatistics->accept(); mStatistics->accept();
else else

Loading…
Cancel
Save