summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/indimenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/indimenu.cpp')
-rw-r--r--kstars/kstars/indimenu.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kstars/kstars/indimenu.cpp b/kstars/kstars/indimenu.cpp
index 99181b0b..a3b0be1e 100644
--- a/kstars/kstars/indimenu.cpp
+++ b/kstars/kstars/indimenu.cpp
@@ -8,7 +8,7 @@
version 2 of the License, or (at your option) any later version.
JM Changelog:
- 2003-04-28 Used indimenu.c as a template. C --> C++, Xm --> KDE/Qt
+ 2003-04-28 Used indimenu.c as a template. C --> C++, Xm --> KDE/TQt
2003-05-01 Added tab for devices and a group feature
2003-05-02 Added scrolling area. Most things are rewritten
2003-05-05 Adding INDI Conf
@@ -59,10 +59,10 @@
** INDI Menu: Handles communication to server and fetching basic XML
** data.
*******************************************************************/
-INDIMenu::INDIMenu(TQWidget *parent, const char *name ) : KDialogBase(KDialogBase::Tabbed, i18n("INDI Control Panel"), 0, KDialogBase::Default, parent, name, false)
+INDIMenu::INDIMenu(TQWidget *tqparent, const char *name ) : KDialogBase(KDialogBase::Tabbed, i18n("INDI Control Panel"), 0, KDialogBase::Default, tqparent, name, false)
{
- ksw = (KStars *) parent;
+ ksw = (KStars *) tqparent;
mgrCounter = 0;
@@ -82,7 +82,7 @@ INDIMenu::~INDIMenu()
** Traverse the drivers list, check for updated drivers and take
** appropriate action
*********************************************************************/
-void INDIMenu::updateStatus()
+void INDIMenu::updatetqStatus()
{
INDIDriver *drivers = ksw->getINDIDriver();
@@ -122,7 +122,7 @@ DeviceManager *dev;
if (drivers->devices[i]->state && drivers->devices[i]->managed == false && drivers->devices[i]->mode == IDevice::M_LOCAL)
{
dev = new DeviceManager(this, mgrCounter);
- if (dev->indiConnect("localhost", TQString("%1").arg(drivers->devices[i]->indiPort)))
+ if (dev->indiConnect("localhost", TQString("%1").tqarg(drivers->devices[i]->indiPort)))
{
drivers->devices[i]->mgrID = mgrCounter;
drivers->devices[i]->managed = true;
@@ -222,11 +222,11 @@ void INDIMenu::setCustomLabel(TQString deviceName)
for (unsigned int i=0; i < mgr.count(); i++)
for (unsigned int j=0; j < mgr.at(i)->indi_dev.count(); j++)
- if (mgr.at(i)->indi_dev.at(j)->label.find(deviceName) >= 0)
+ if (mgr.at(i)->indi_dev.at(j)->label.tqfind(deviceName) >= 0)
nset++;
if (nset)
- currentLabel = deviceName + TQString(" %1").arg(nset+1);
+ currentLabel = deviceName + TQString(" %1").tqarg(nset+1);
else
currentLabel = deviceName;