summaryrefslogtreecommitdiffstats
path: root/kdpkg-install/console.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 21:11:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 21:11:15 +0000
commit9885af067f442d03025eb180e0e5472b636ac265 (patch)
treed3eea362985c3df054c9ac5ad109f2d644bca865 /kdpkg-install/console.cpp
parentb155cffc1b83c93eab4a7a09d5c8a00afec0a528 (diff)
downloadkdpkg-9885af067f442d03025eb180e0e5472b636ac265.tar.gz
kdpkg-9885af067f442d03025eb180e0e5472b636ac265.zip
TQt4 port kdpkg
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdpkg@1239294 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdpkg-install/console.cpp')
-rw-r--r--kdpkg-install/console.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kdpkg-install/console.cpp b/kdpkg-install/console.cpp
index f1dfaa9..cb2d0cc 100644
--- a/kdpkg-install/console.cpp
+++ b/kdpkg-install/console.cpp
@@ -22,16 +22,16 @@
#include <kgenericfactory.h>
#include <kpushbutton.h>
-#include <qlistbox.h>
-#include <qlineedit.h>
-#include <qcombobox.h>
-#include <qwidgetstack.h>
-#include <qlistview.h>
-#include <qtextedit.h>
-#include <qstring.h>
+#include <tqlistbox.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
+#include <tqwidgetstack.h>
+#include <tqlistview.h>
+#include <tqtextedit.h>
+#include <tqstring.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
#include "console.h"
@@ -40,8 +40,8 @@
using namespace std;
-console::console(QWidget *parent, const QStrList &run, const char *name, const QStringList &)
-: Widget(parent,name)
+console::console(TQWidget *tqparent, const TQStrList &run, const char *name, const TQStringList &)
+: Widget(tqparent,name)
{
// Get KDE prefix
@@ -64,7 +64,7 @@ console::console(QWidget *parent, const QStrList &run, const char *name, const Q
i=2048;
}
}
- m_kdePrefix = QString(prefix_result);
+ m_kdePrefix = TQString(prefix_result);
}
//label->setText( name );
@@ -73,7 +73,7 @@ console::console(QWidget *parent, const QStrList &run, const char *name, const Q
// run command
terminal()->startProgram( m_kdePrefix + "/share/kdpkg/sh/kdpkg-sh", run );
- connect( konsole, SIGNAL(destroyed()), this, SLOT( finish() ) );
+ connect( konsole, TQT_SIGNAL(destroyed()), this, TQT_SLOT( finish() ) );
}
@@ -89,18 +89,18 @@ void console::loadKonsole()
KLibFactory* factory = KLibLoader::self()->factory( "libsanekonsolepart" );
if (!factory)
factory = KLibLoader::self()->factory( "libkonsolepart" );
- konsole = static_cast<KParts::Part*>( factory->create( konsoleFrame, "konsolepart", "QObject", "KParts::ReadOnlyPart" ) );
+ konsole = static_cast<KParts::Part*>( factory->create( TQT_TQOBJECT(konsoleFrame), "konsolepart", TQOBJECT_OBJECT_NAME_STRING, "KParts::ReadOnlyPart" ) );
terminal()->setAutoDestroy( true );
terminal()->setAutoStartShell( false );
konsole->widget()->setGeometry(0, 0, konsoleFrame->width(), konsoleFrame->height());
}
-bool console::eventFilter( QObject *o, QEvent *e )
+bool console::eventFilter( TQObject *o, TQEvent *e )
{
// This function makes the console emulator expanding
- if ( e->type() == QEvent::Resize )
+ if ( e->type() == TQEvent::Resize )
{
- QResizeEvent *re = dynamic_cast< QResizeEvent * >( e );
+ TQResizeEvent *re = dynamic_cast< TQResizeEvent * >( e );
if ( !re ) return false;
konsole->widget()->setGeometry( 0, 0, re->size().width(), re->size().height() );
}