From 418e8f7a6f6d79b2cbc9d83b29ef53d01582f826 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 21 Dec 2023 11:50:25 +0900 Subject: Replace various '#define' strings - part 6 Signed-off-by: Michele Calgaro --- kppp/connect.cpp | 2 +- kppp/kpppwidget.cpp | 2 +- kppp/loginterm.cpp | 2 +- kppp/miniterm.cpp | 8 ++++---- kppp/modeminfo.cpp | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'kppp') diff --git a/kppp/connect.cpp b/kppp/connect.cpp index eba8da1e..4e494ea1 100644 --- a/kppp/connect.cpp +++ b/kppp/connect.cpp @@ -259,7 +259,7 @@ void ConnectWidget::init() { semaphore = false; Modem::modem->stop(); - Modem::modem->notify(TQT_TQOBJECT(this), TQT_SLOT(readChar(unsigned char))); + Modem::modem->notify(this, TQT_SLOT(readChar(unsigned char))); // if we are stuck anywhere we will time out timeout_timer->start(gpppdata.modemTimeout()*1000); diff --git a/kppp/kpppwidget.cpp b/kppp/kpppwidget.cpp index 4597540f..3599145a 100644 --- a/kppp/kpppwidget.cpp +++ b/kppp/kpppwidget.cpp @@ -912,7 +912,7 @@ void KPPPWidget::startAccounting() { TQString d = AccountingBase::getAccountingFile(gpppdata.accountingFile()); // if(::access(d.data(), X_OK) != 0) - acct = new Accounting(TQT_TQOBJECT(this), stats); + acct = new Accounting(this, stats); // else // acct = new ExecutableAccounting(this); diff --git a/kppp/loginterm.cpp b/kppp/loginterm.cpp index badf77df..a663e9b2 100644 --- a/kppp/loginterm.cpp +++ b/kppp/loginterm.cpp @@ -136,7 +136,7 @@ LoginTerm::LoginTerm (TQWidget *parent, const char *name) cont = false; - Modem::modem->notify(TQT_TQOBJECT(text_window), TQT_SLOT(readChar(unsigned char))); + Modem::modem->notify(text_window, TQT_SLOT(readChar(unsigned char))); } diff --git a/kppp/miniterm.cpp b/kppp/miniterm.cpp index 336076c8..55f526fd 100644 --- a/kppp/miniterm.cpp +++ b/kppp/miniterm.cpp @@ -103,15 +103,15 @@ void MiniTerm::setupToolbar() { toolbar = new TDEToolBar( this ); toolbar->insertButton("system-log-out", 0, - TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), + TQT_SIGNAL(clicked()), this, TQT_SLOT(cancelbutton()), TRUE, i18n("Close MiniTerm")); toolbar->insertButton("back", 0, - TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), + TQT_SIGNAL(clicked()), this, TQT_SLOT(resetModem()), TRUE, i18n("Reset Modem")); toolbar->insertButton("help", 0, - TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), + TQT_SIGNAL(clicked()), this, TQT_SLOT(help()), TRUE, i18n("Help")); toolbar->setBarPos( TDEToolBar::Top ); @@ -154,7 +154,7 @@ void MiniTerm::init() { kapp->processEvents(); kapp->processEvents(); - Modem::modem->notify(TQT_TQOBJECT(this), TQT_SLOT(readChar(unsigned char))); + Modem::modem->notify(this, TQT_SLOT(readChar(unsigned char))); return; } } diff --git a/kppp/modeminfo.cpp b/kppp/modeminfo.cpp index b91fe671..75a6c00a 100644 --- a/kppp/modeminfo.cpp +++ b/kppp/modeminfo.cpp @@ -151,7 +151,7 @@ void ModemTransfer::init() { // clear modem buffer Modem::modem->flush(); - Modem::modem->notify(TQT_TQOBJECT(this), TQT_SLOT(readChar(unsigned char))); + Modem::modem->notify(this, TQT_SLOT(readChar(unsigned char))); return; } } -- cgit v1.2.1