summaryrefslogtreecommitdiffstats
path: root/src/progs/gui/port_selector.h
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/gui/port_selector.h
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/gui/port_selector.h')
-rw-r--r--src/progs/gui/port_selector.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/progs/gui/port_selector.h b/src/progs/gui/port_selector.h
index 6304d1a..86a0d4d 100644
--- a/src/progs/gui/port_selector.h
+++ b/src/progs/gui/port_selector.h
@@ -9,24 +9,25 @@
#ifndef PORT_SELECTOR_H
#define PORT_SELECTOR_H
-#include <qradiobutton.h>
-#include <qcombobox.h>
-#include <qlayout.h>
-#include <qbuttongroup.h>
-#include <qlabel.h>
+#include <tqradiobutton.h>
+#include <tqcombobox.h>
+#include <tqlayout.h>
+#include <tqbuttongroup.h>
+#include <tqlabel.h>
#include "common/port/port.h"
namespace Programmer { class Group; }
-class PortSelector : public QFrame
+class PortSelector : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- PortSelector(QWidget *parent);
+ PortSelector(TQWidget *tqparent);
void setGroup(const Programmer::Group &group);
Port::Description portDescription() const { return Port::Description(type(), device(type())); }
void saveConfig();
- void setStatus(PortType type, const QString &message);
+ void settqStatus(PortType type, const TQString &message);
signals:
void changed();
@@ -36,17 +37,17 @@ private slots:
private:
const Programmer::Group *_group;
- QGridLayout *_top, *_grid;
- QWidget *_main;
- QButtonGroup *_bgroup;
- QComboBox *_combos[PortType::Nb_Types];
- QLabel *_status[PortType::Nb_Types];
+ TQGridLayout *_top, *_grid;
+ TQWidget *_main;
+ TQButtonGroup *_bgroup;
+ TQComboBox *_combos[PortType::Nb_Types];
+ TQLabel *_status[PortType::Nb_Types];
bool _pending;
static const char * const LABELS[PortType::Nb_Types];
void addPortType(const Port::Description &pd);
PortType type() const;
- QString device(PortType type) const;
+ TQString device(PortType type) const;
};
#endif