summaryrefslogtreecommitdiffstats
path: root/src/progs/tbl_bootloader/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/tbl_bootloader/gui')
-rw-r--r--src/progs/tbl_bootloader/gui/tbl_bootloader_ui.cpp16
-rw-r--r--src/progs/tbl_bootloader/gui/tbl_bootloader_ui.h5
2 files changed, 11 insertions, 10 deletions
diff --git a/src/progs/tbl_bootloader/gui/tbl_bootloader_ui.cpp b/src/progs/tbl_bootloader/gui/tbl_bootloader_ui.cpp
index 5b576b9..f0c1725 100644
--- a/src/progs/tbl_bootloader/gui/tbl_bootloader_ui.cpp
+++ b/src/progs/tbl_bootloader/gui/tbl_bootloader_ui.cpp
@@ -12,29 +12,29 @@
#include "common/port/serial.h"
//-----------------------------------------------------------------------------
-TinyBootloader::ConfigWidget::ConfigWidget(const::Programmer::Group &group, QWidget *parent)
- : ::Programmer::ConfigWidget(group, parent)
+TinyBootloader::ConfigWidget::ConfigWidget(const::Programmer::Group &group, TQWidget *tqparent)
+ : ::Programmer::ConfigWidget(group, tqparent)
{
uint row = numRows();
- QLabel *label = new QLabel(i18n("Port Speed:"), this);
+ TQLabel *label = new TQLabel(i18n("Port Speed:"), this);
addWidget(label, row,row, 0,0);
_speed = new KComboBox(this);
for (uint i=0; i<Port::Serial::Nb_Speeds; i++) {
if ( Port::Serial::SPEED_VALUES[i]==0 || !Port::Serial::SPEED_DATA[i].supported ) continue;
- _speed->insertItem(QString::number(Port::Serial::SPEED_VALUES[i]));
+ _speed->insertItem(TQString::number(Port::Serial::SPEED_VALUES[i]));
}
addWidget(_speed, row,row, 1,1);
row++;
- label = new QLabel(i18n("Timeout (ms):"), this);
+ label = new TQLabel(i18n("Timeout (ms):"), this);
addWidget(label, row,row, 0,0);
_timeout = new KIntNumInput(this);
_timeout->setMinValue(0);
addWidget(_timeout, row,row, 1,1);
row++;
- label = new QLabel(i18n("No of Retries:"), this);
+ label = new TQLabel(i18n("No of Retries:"), this);
addWidget(label, row,row, 0,0);
_retries = new KIntNumInput(this);
_retries->setMinValue(0);
@@ -74,7 +74,7 @@ void TinyBootloader::ConfigWidget::loadConfig()
}
//-----------------------------------------------------------------------------
-::Programmer::ConfigWidget *TinyBootloader::GroupUI::createConfigWidget(QWidget *parent) const
+::Programmer::ConfigWidget *TinyBootloader::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/tbl_bootloader/gui/tbl_bootloader_ui.h b/src/progs/tbl_bootloader/gui/tbl_bootloader_ui.h
index d0285af..442b879 100644
--- a/src/progs/tbl_bootloader/gui/tbl_bootloader_ui.h
+++ b/src/progs/tbl_bootloader/gui/tbl_bootloader_ui.h
@@ -20,8 +20,9 @@ namespace TinyBootloader
class ConfigWidget: public ::Programmer::ConfigWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- ConfigWidget(const ::Programmer::Group &group, QWidget *parent);
+ ConfigWidget(const ::Programmer::Group &group, TQWidget *tqparent);
virtual void loadConfig();
virtual void saveConfig();
@@ -34,7 +35,7 @@ private:
class GroupUI : public ::Bootloader::GroupUI
{
public:
- virtual ::Programmer::ConfigWidget *createConfigWidget(QWidget *parent) const;
+ virtual ::Programmer::ConfigWidget *createConfigWidget(TQWidget *tqparent) const;
};
} // namespace