summaryrefslogtreecommitdiffstats
path: root/kdcop/kdcoplistview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kdcop/kdcoplistview.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdcop/kdcoplistview.cpp')
-rw-r--r--kdcop/kdcoplistview.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/kdcop/kdcoplistview.cpp b/kdcop/kdcoplistview.cpp
index 07e0b9fb8..cc727072b 100644
--- a/kdcop/kdcoplistview.cpp
+++ b/kdcop/kdcoplistview.cpp
@@ -7,12 +7,12 @@
#include "kdcoplistview.h"
#include "kdcoplistview.moc"
#include <kdebug.h>
-#include <qdragobject.h>
-#include <qstringlist.h>
-#include <qregexp.h>
+#include <tqdragobject.h>
+#include <tqstringlist.h>
+#include <tqregexp.h>
-KDCOPListView::KDCOPListView ( QWidget *parent, const char *name)
+KDCOPListView::KDCOPListView ( TQWidget *parent, const char *name)
: KListView(parent, name)
{
kdDebug() << "Building new list." << endl;
@@ -25,21 +25,21 @@ KDCOPListView::~KDCOPListView ()
}
-QDragObject *KDCOPListView::dragObject()
+TQDragObject *KDCOPListView::dragObject()
{
kdDebug() << "Drag object called... " << endl;
if(!currentItem())
return 0;
else
- return new QTextDrag(encode(this->selectedItem()), this);
+ return new TQTextDrag(encode(this->selectedItem()), this);
}
-void KDCOPListView::setMode( const QString &theMode )
+void KDCOPListView::setMode( const TQString &theMode )
{
mode = theMode;
}
-QString KDCOPListView::encode(QListViewItem *theCode)
+TQString KDCOPListView::encode(TQListViewItem *theCode)
{
DCOPBrowserItem * item = static_cast<DCOPBrowserItem *>(theCode);
@@ -49,18 +49,18 @@ QString KDCOPListView::encode(QListViewItem *theCode)
DCOPBrowserFunctionItem * fitem =
static_cast<DCOPBrowserFunctionItem *>(item);
- QString function = QString::fromUtf8(fitem->function());
- QString application = QString::fromUtf8(fitem->app());
- QString object = QString::fromUtf8(fitem->object());
+ TQString function = TQString::fromUtf8(fitem->function());
+ TQString application = TQString::fromUtf8(fitem->app());
+ TQString object = TQString::fromUtf8(fitem->object());
kdDebug() << function << endl;
- QString returnType = function.section(' ', 0,0);
- QString returnCode = "";
- QString normalisedSignature;
- QStringList types;
- QStringList names;
+ TQString returnType = function.section(' ', 0,0);
+ TQString returnCode = "";
+ TQString normalisedSignature;
+ TQStringList types;
+ TQStringList names;
- QString unNormalisedSignature(function);
+ TQString unNormalisedSignature(function);
int s = unNormalisedSignature.find(' ');
@@ -81,9 +81,9 @@ QString KDCOPListView::encode(QListViewItem *theCode)
}
if (left > 0 && left + 1 < right - 1)
{
- types = QStringList::split
+ types = TQStringList::split
(',', unNormalisedSignature.mid(left + 1, right - left - 1));
- for (QStringList::Iterator it = types.begin(); it != types.end(); ++it)
+ for (TQStringList::Iterator it = types.begin(); it != types.end(); ++it)
{
(*it) = (*it).stripWhiteSpace();
int s = (*it).find(' ');
@@ -97,16 +97,16 @@ QString KDCOPListView::encode(QListViewItem *theCode)
if ( mode == "C++")
{
- QString args;
+ TQString args;
for( unsigned int i = 0; i < names.count(); i++)
{
args += types[i] + " " + names[i] + ";\n";
}
- QString dcopRef = "DCOPRef m_" + application + object
+ TQString dcopRef = "DCOPRef m_" + application + object
+ "(\""+ application + "\",\"" + object +"\");\n";
- QString stringNames = names.join(",");
- QString stringTypes = types.join(",");
+ TQString stringNames = names.join(",");
+ TQString stringTypes = types.join(",");
if( returnType != "void")
returnType += " return" + returnType + " =";
else
@@ -128,7 +128,7 @@ QString KDCOPListView::encode(QListViewItem *theCode)
}
else if (mode == "Python")
{
- QString setup;
+ TQString setup;
setup = "m_"
+ application + object
+ " = dcop.DCOPObject( \""
@@ -150,8 +150,8 @@ QString KDCOPListView::encode(QListViewItem *theCode)
return returnCode;
}
-QString KDCOPListView::getCurrentCode() const
+TQString KDCOPListView::getCurrentCode() const
{
// fixing warning
- return QString::null;
+ return TQString::null;
}