diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:31:19 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:31:19 -0600 |
commit | e29455aea4fc1fda591862200c6321a3722e134c (patch) | |
tree | dbb3bc7ee43510962fcfa3d69b5743d8daf8c3b6 /src/knutclient.cpp | |
parent | 841ad360f807ab3ab1596308d120ef7918207e13 (diff) | |
download | knutclient-e29455aea4fc1fda591862200c6321a3722e134c.tar.gz knutclient-e29455aea4fc1fda591862200c6321a3722e134c.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/knutclient.cpp')
-rwxr-xr-x | src/knutclient.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/knutclient.cpp b/src/knutclient.cpp index 935d1e1..3c4adb1 100755 --- a/src/knutclient.cpp +++ b/src/knutclient.cpp @@ -90,7 +90,7 @@ KNutClient::KNutClient(bool noDock, TQObject* parent, const char *name) : TQObje // sets data for selected item setActiveUpsInfo(m_mainUpsInfo.record.name); - // sets mainUpsInfo.oldState to const value KNutNet::inittqStatus + // sets mainUpsInfo.oldState to const value KNutNet::initStatus m_mainUpsInfo.oldState=KNutNet::initState; @@ -281,7 +281,7 @@ void KNutClient::slotErrorConnection (int error) { m_mainUpsInfo.reconnectCount++; if (m_mainUpsInfo.reconnectCount > countNextConnDelay) m_mainUpsInfo.reconnectCount = countNextConnDelay; - addEventString(i18n("The connection failed. The next connection will make after %1 sec.").tqarg(nextConnDelay[m_mainUpsInfo.reconnectCount-1]),m_mainUpsInfo.record.name); + addEventString(i18n("The connection failed. The next connection will make after %1 sec.").arg(nextConnDelay[m_mainUpsInfo.reconnectCount-1]),m_mainUpsInfo.record.name); m_reconnectTimer->start( nextConnDelay[m_mainUpsInfo.reconnectCount-1]*1000, TRUE ); // starts reconnect timer again } else { @@ -715,7 +715,7 @@ void KNutClient::addEventString (const TQString text, const TQString UPSAddress) mainWindow->addComboStatusItem (text,UPSAddress); else { - TQString dateTime(TQDate::tqcurrentDate().toString()); + TQString dateTime(TQDate::currentDate().toString()); dateTime +=" " + TQTime::currentTime().toString(); if (UPSAddress.isEmpty()) m_listKNutEvent->append(dateTime+" "+text); else m_listKNutEvent->append(dateTime+" "+UPSAddress+" : "+text); @@ -791,7 +791,7 @@ void KNutClient::showStatusEvent(void) { //qDebug ("KNutClient::showStatusEvent"); - int myState = m_mainUpsInfo.upsNet->readtqStatus(); + int myState = m_mainUpsInfo.upsNet->readStatus(); if (myState != m_mainUpsInfo.oldState) { if ((myState & KNutNet::OFF) != (m_mainUpsInfo.oldState & KNutNet::OFF)) { @@ -1096,7 +1096,7 @@ void KNutClient::slotRefreshConnection(void) { if (m_myDock) { m_myDock->clearDockValues(); // myDock->initImage(); - // myDock->tqrepaint(); + // myDock->repaint(); } if (mainWindow) { mainWindow->cleanPanels(); |