summaryrefslogtreecommitdiffstats
path: root/src/tools/c18/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/tools/c18/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/tools/c18/gui')
-rw-r--r--src/tools/c18/gui/c18_ui.cpp8
-rw-r--r--src/tools/c18/gui/c18_ui.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/src/tools/c18/gui/c18_ui.cpp b/src/tools/c18/gui/c18_ui.cpp
index c10f328..5d0c167 100644
--- a/src/tools/c18/gui/c18_ui.cpp
+++ b/src/tools/c18/gui/c18_ui.cpp
@@ -8,7 +8,7 @@
***************************************************************************/
#include "c18_ui.h"
-#include <qlabel.h>
+#include <tqlabel.h>
#include "tools/c18/c18_config.h"
//----------------------------------------------------------------------------
@@ -20,10 +20,10 @@ void C18::ConfigWidget::initEntries()
{
if ( _category==Tool::Category::Compiler ) {
uint row = container()->numRows();
- QLabel *label = new QLabel(i18n("Warning level:"), container());
+ TQLabel *label = new TQLabel(i18n("Warning level:"), container());
container()->addWidget(label, row,row, 0,0);
- _warningLevel = new QComboBox(container());
- connect(_warningLevel, SIGNAL(activated(int)), SIGNAL(changed()));
+ _warningLevel = new TQComboBox(container());
+ connect(_warningLevel, TQT_SIGNAL(activated(int)), TQT_SIGNAL(changed()));
for (uint i=0; i<Config::Nb_WarningLevels; i++)
_warningLevel->insertItem(i18n(Config::WARNING_LEVEL_LABELS[i]));
container()->addWidget(_warningLevel, row,row, 1,1);
diff --git a/src/tools/c18/gui/c18_ui.h b/src/tools/c18/gui/c18_ui.h
index d7d45c4..8ccb638 100644
--- a/src/tools/c18/gui/c18_ui.h
+++ b/src/tools/c18/gui/c18_ui.h
@@ -18,11 +18,12 @@ namespace C18
class ConfigWidget : public ToolConfigWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
ConfigWidget(Project *project);
private:
- QComboBox *_warningLevel;
+ TQComboBox *_warningLevel;
virtual void initEntries();
virtual void loadConfig(const Compile::Config &config);
virtual void saveConfig(Compile::Config &config) const;