diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
commit | 0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch) | |
tree | b95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/tools/gui/toolchain_config_widget.h | |
parent | b79a2c28534cf09987eeeba3077fff9236df182a (diff) | |
download | piklab-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/tools/gui/toolchain_config_widget.h')
-rw-r--r-- | src/tools/gui/toolchain_config_widget.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/tools/gui/toolchain_config_widget.h b/src/tools/gui/toolchain_config_widget.h index ad7978a..b1e795d 100644 --- a/src/tools/gui/toolchain_config_widget.h +++ b/src/tools/gui/toolchain_config_widget.h @@ -9,8 +9,8 @@ #ifndef TOOLCHAIN_CONFIG_WIDGET_H #define TOOLCHAIN_CONFIG_WIDGET_H -#include <qwidgetstack.h> -#include <qlabel.h> +#include <tqwidgetstack.h> +#include <tqlabel.h> #include <klocale.h> #include <kpushbutton.h> @@ -26,8 +26,9 @@ namespace Tool { class Group; } class ToolchainConfigWidget : public ::ConfigWidget { Q_OBJECT + TQ_OBJECT public: - ToolchainConfigWidget(const Tool::Group &group, QWidget *parent); + ToolchainConfigWidget(const Tool::Group &group, TQWidget *tqparent); virtual ~ToolchainConfigWidget(); const Tool::Group &group() const { return _group; } void init(); @@ -42,7 +43,7 @@ protected: bool withWine() const; Tool::OutputExecutableType outputType() const; virtual void addCustomExecutableOptions(Container *) {} - virtual QString baseExecutable(Tool::Category category) const; + virtual TQString baseExecutable(Tool::Category category) const; virtual ::Process::LineOutput *checkExecutableProcess(Tool::Category category) const; virtual ::Process::LineOutput *checkDevicesProcess(uint i) const; @@ -56,30 +57,30 @@ protected: const Tool::Group &_group; Compile::Config *_config; bool _dirty; - QComboBox *_execType; + TQComboBox *_execType; KeyComboBox<Tool::OutputExecutableType> *_outputType; - QLabel *_devicesLabel; - QMap<Compile::DirectoryType, PURL::DirectoryWidget *> _dirs; + TQLabel *_devicesLabel; + TQMap<Compile::DirectoryType, PURL::DirectoryWidget *> _dirs; class ExecData { public: ExecData() : label(0), button(0), process(0) {} ~ExecData() { delete process; } - QLabel *label; - QString command; - QStringList checkLines; + TQLabel *label; + TQString command; + TQStringList checkLines; KPushButton *button; ::Process::LineOutput *process; }; - QMap<Tool::Category, ExecData> _data; + TQMap<Tool::Category, ExecData> _data; class DevicesData { public: DevicesData() : process(0) {} bool done; - QString command; - QStringList checkLines; + TQString command; + TQStringList checkLines; ::Process::LineOutput *process; }; - QValueVector<DevicesData> _devicesData; + TQValueVector<DevicesData> _devicesData; }; #endif |