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/libgui/console.cpp | |
| 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/libgui/console.cpp')
| -rw-r--r-- | src/libgui/console.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libgui/console.cpp b/src/libgui/console.cpp index 99c996c..cff0c42 100644 --- a/src/libgui/console.cpp +++ b/src/libgui/console.cpp @@ -8,35 +8,35 @@ ***************************************************************************/ #include "console.h" -#include <qlayout.h> -#include <qlabel.h> -#include <qdir.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqdir.h> #include <klibloader.h> #include <klocale.h> #include <kparts/part.h> #include <kde_terminal_interface.h> -ConsoleView::ConsoleView(QWidget *parent) - : QWidget(parent, "console_view"), _initialized(false) +ConsoleView::ConsoleView(TQWidget *tqparent) + : TQWidget(tqparent, "console_view"), _initialized(false) {} -void ConsoleView::showEvent(QShowEvent *e) +void ConsoleView::showEvent(TQShowEvent *e) { if ( !_initialized ) { _initialized = true; KLibFactory *factory = KLibLoader::self()->factory("libkonsolepart"); - QVBoxLayout *top = new QVBoxLayout(this, 0, 10); + TQVBoxLayout *top = new TQVBoxLayout(this, 0, 10); if ( factory==0 ) { - QLabel *label = new QLabel(i18n("Could not find \"konsolepart\"; please install kdebase."), this); + TQLabel *label = new TQLabel(i18n("Could not tqfind \"konsolepart\"; please install kdebase."), this); label->show(); top->addWidget(label); return; } else { - QWidget *pwidget = static_cast<KParts::Part *>(factory->create(this, "konsole"))->widget(); + TQWidget *pwidget = static_cast<KParts::Part *>(factory->create(TQT_TQOBJECT(this), "konsole"))->widget(); pwidget->show(); top->addWidget(pwidget); setFocusProxy(pwidget); } } - QWidget::showEvent(e); + TQWidget::showEvent(e); } |
