summaryrefslogtreecommitdiffstats
path: root/src/progs/gpsim/gui
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/progs/gpsim/gui
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
TQt4 port piklab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/progs/gpsim/gui')
-rw-r--r--src/progs/gpsim/gui/gpsim_group_ui.cpp20
-rw-r--r--src/progs/gpsim/gui/gpsim_group_ui.h11
2 files changed, 16 insertions, 15 deletions
diff --git a/src/progs/gpsim/gui/gpsim_group_ui.cpp b/src/progs/gpsim/gui/gpsim_group_ui.cpp
index 3949b8e..f3375cc 100644
--- a/src/progs/gpsim/gui/gpsim_group_ui.cpp
+++ b/src/progs/gpsim/gui/gpsim_group_ui.cpp
@@ -8,35 +8,35 @@
***************************************************************************/
#include "gpsim_group_ui.h"
-#include <qtimer.h>
+#include <tqtimer.h>
#include "progs/base/prog_group.h"
#include "progs/gpsim/base/gpsim.h"
//----------------------------------------------------------------------------
-GPSim::ConfigWidget::ConfigWidget(const ::Programmer::Group &group, QWidget *parent)
- : ::Programmer::ConfigWidget(group, parent)
+GPSim::ConfigWidget::ConfigWidget(const ::Programmer::Group &group, TQWidget *tqparent)
+ : ::Programmer::ConfigWidget(group, tqparent)
{
uint row = numRows();
- QLabel *label = new QLabel(i18n("Status:"), this);
+ TQLabel *label = new TQLabel(i18n("tqStatus:"), this);
addWidget(label, row,row, 0,0);
- _status = new QLabel(this);
+ _status = new TQLabel(this);
addWidget(_status, row,row, 1,1);
- QTimer::singleShot(0, this, SLOT(updateStatus()));
+ TQTimer::singleShot(0, this, TQT_SLOT(updatetqStatus()));
}
-void GPSim::ConfigWidget::updateStatus()
+void GPSim::ConfigWidget::updatetqStatus()
{
VersionData version;
ProcessManager manager(0);
if ( !manager.start() ) _status->setText(i18n("Could not start \"gpsim\""));
else if ( !manager.getVersion(version) || !version.isValid() ) _status->setText(i18n("Could not detect \"gpsim\" version"));
- else _status->setText(i18n("Found version \"%1\"").arg(version.pretty()));
+ else _status->setText(i18n("Found version \"%1\"").tqarg(version.pretty()));
}
//----------------------------------------------------------------------------
-::Programmer::ConfigWidget *GPSim::GroupUI::createConfigWidget(QWidget *parent) const
+::Programmer::ConfigWidget *GPSim::GroupUI::createConfigWidget(TQWidget *tqparent) const
{
- return new ConfigWidget(static_cast<const ::Programmer::Group &>(group()), parent);
+ return new ConfigWidget(static_cast<const ::Programmer::Group &>(group()), tqparent);
}
diff --git a/src/progs/gpsim/gui/gpsim_group_ui.h b/src/progs/gpsim/gui/gpsim_group_ui.h
index 485aa69..7916a1d 100644
--- a/src/progs/gpsim/gui/gpsim_group_ui.h
+++ b/src/progs/gpsim/gui/gpsim_group_ui.h
@@ -18,23 +18,24 @@ namespace GPSim
class ConfigWidget : public ::Programmer::ConfigWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- ConfigWidget(const ::Programmer::Group &group, QWidget *parent);
+ ConfigWidget(const ::Programmer::Group &group, TQWidget *tqparent);
private slots:
- void updateStatus();
+ void updatetqStatus();
private:
- QLabel *_status;
+ TQLabel *_status;
};
//----------------------------------------------------------------------------
class GroupUI : public ::Programmer::GroupUI
{
public:
- virtual ::Programmer::ConfigWidget *createConfigWidget(QWidget *parent) const;
+ virtual ::Programmer::ConfigWidget *createConfigWidget(TQWidget *tqparent) const;
virtual bool hasAdvancedDialog() const { return false; }
- virtual ::Programmer::AdvancedDialog *createAdvancedDialog(::Programmer::Base &, QWidget *) const { return 0; }
+ virtual ::Programmer::AdvancedDialog *createAdvancedDialog(::Programmer::Base &, TQWidget *) const { return 0; }
};
} // namespace