summaryrefslogtreecommitdiffstats
path: root/src/libgui/console.cpp
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/libgui/console.cpp
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/libgui/console.cpp')
-rw-r--r--src/libgui/console.cpp20
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);
}