summaryrefslogtreecommitdiffstats
path: root/parts/partexplorer
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/partexplorer
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/partexplorer')
-rw-r--r--parts/partexplorer/partexplorer_plugin.cpp4
-rw-r--r--parts/partexplorer/partexplorer_plugin.h6
-rw-r--r--parts/partexplorer/partexplorerform.cpp72
-rw-r--r--parts/partexplorer/partexplorerform.h4
4 files changed, 43 insertions, 43 deletions
diff --git a/parts/partexplorer/partexplorer_plugin.cpp b/parts/partexplorer/partexplorer_plugin.cpp
index 92aaf696..dbf2b554 100644
--- a/parts/partexplorer/partexplorer_plugin.cpp
+++ b/parts/partexplorer/partexplorer_plugin.cpp
@@ -28,7 +28,7 @@ static const KDevPluginInfo data("kdevpartexplorer");
typedef KDevGenericFactory<PartExplorerPlugin> PartExplorerPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libkdevpartexplorer, PartExplorerPluginFactory( data ) )
-PartExplorerPlugin::PartExplorerPlugin( QObject *parent, const char *name, const QStringList & )
+PartExplorerPlugin::PartExplorerPlugin( TQObject *parent, const char *name, const TQStringList & )
: KDevPlugin( &data, parent, name ? name : "PartExplorerPlugin" )
{
// we need an instance
@@ -40,7 +40,7 @@ PartExplorerPlugin::PartExplorerPlugin( QObject *parent, const char *name, cons
m_widget = new PartExplorerForm( mainWindow()->main() );
// mainWindow()->embedSelectView( m_widget, i18n("PartExplorer"), i18n("Query system services"));
- KAction *action = new KAction( i18n("&Part Explorer"), 0, this, SLOT(slotShowForm()),
+ KAction *action = new KAction( i18n("&Part Explorer"), 0, this, TQT_SLOT(slotShowForm()),
actionCollection(), "show_partexplorerform" );
action->setToolTip(i18n("KTrader query execution"));
action->setWhatsThis(i18n("<b>Part explorer</b><p>Shows a dialog for KTrader query execution. Search your KDE documentation for more information about KDE services and KTrader."));
diff --git a/parts/partexplorer/partexplorer_plugin.h b/parts/partexplorer/partexplorer_plugin.h
index 28f3cd95..8e2accbd 100644
--- a/parts/partexplorer/partexplorer_plugin.h
+++ b/parts/partexplorer/partexplorer_plugin.h
@@ -12,7 +12,7 @@
#ifndef _PARTEXPLORERPLUGIN_H_
#define _PARTEXPLORERPLUGIN_H_
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include "kdevplugin.h"
@@ -28,7 +28,7 @@ public:
/**
* Default constructor
*/
- PartExplorerPlugin( QObject *parent, const char *name, const QStringList & );
+ PartExplorerPlugin( TQObject *parent, const char *name, const TQStringList & );
/**
* Destructor
@@ -42,7 +42,7 @@ private:
/**
* The dialog for user interaction, so the plugin is usable too ;)
*/
- QGuardedPtr<PartExplorerForm> m_widget;
+ TQGuardedPtr<PartExplorerForm> m_widget;
};
#endif // _PARTEXPLORERPLUGIN_H_
diff --git a/parts/partexplorer/partexplorerform.cpp b/parts/partexplorer/partexplorerform.cpp
index f3a1caad..f944b393 100644
--- a/parts/partexplorer/partexplorerform.cpp
+++ b/parts/partexplorer/partexplorerform.cpp
@@ -9,13 +9,13 @@
* *
***************************************************************************/
-#include <qlineedit.h>
-#include <qtextedit.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
-#include <qlabel.h>
+#include <tqlineedit.h>
+#include <tqtextedit.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
+#include <tqlabel.h>
#include <klistview.h>
#include <klocale.h>
@@ -35,8 +35,8 @@ namespace PartExplorer{
class PropertyItem : public KListViewItem
{
public:
- PropertyItem( KListViewItem *parent, const QString &propertyName,
- const QString &propertyType, const QString &propertyValue )
+ PropertyItem( KListViewItem *parent, const TQString &propertyName,
+ const TQString &propertyType, const TQString &propertyValue )
: KListViewItem( parent )
{
setText( 0, propertyName );
@@ -44,9 +44,9 @@ public:
setText( 2, propertyValue );
}
- QString tipText() const
+ TQString tipText() const
{
- QString tip = i18n("Name: %1 | Type: %2 | Value: %3");
+ TQString tip = i18n("Name: %1 | Type: %2 | Value: %3");
return tip.arg( text(0) ).arg( text(1) ).arg( text(2) );
}
};
@@ -62,7 +62,7 @@ class ResultsToolTip: public QToolTip
{
public:
ResultsToolTip( ResultsList* parent );
- virtual void maybeTip( const QPoint& p );
+ virtual void maybeTip( const TQPoint& p );
private:
ResultsList* m_resultsList;
@@ -71,7 +71,7 @@ private:
class ResultsList : public KListView
{
public:
- ResultsList( QWidget *parent )
+ ResultsList( TQWidget *parent )
: KListView( parent, "resultslist" )
{
this->setShowToolTips( false );
@@ -87,16 +87,16 @@ public:
};
ResultsToolTip::ResultsToolTip( ResultsList* parent )
- : QToolTip( parent->viewport() ), m_resultsList( parent )
+ : TQToolTip( parent->viewport() ), m_resultsList( parent )
{
}
-void ResultsToolTip::maybeTip( const QPoint& p )
+void ResultsToolTip::maybeTip( const TQPoint& p )
{
PartExplorer::PropertyItem *item = dynamic_cast<PartExplorer::PropertyItem*>( m_resultsList->itemAt( p ) );
if ( item )
{
- QRect r = m_resultsList->itemRect( item );
+ TQRect r = m_resultsList->itemRect( item );
if ( r.isValid() )
tip( r, item->tipText() );
}
@@ -107,7 +107,7 @@ void ResultsToolTip::maybeTip( const QPoint& p )
// class PartExplorerForm
///////////////////////////////////////////////////////////////////////////////
-PartExplorerForm::PartExplorerForm( QWidget *parent )
+PartExplorerForm::PartExplorerForm( TQWidget *parent )
: KDialogBase( parent, "parteplorerform", false,
i18n("Part Explorer - A Services Lister"), User1 | Close, User1, true )
{
@@ -116,10 +116,10 @@ PartExplorerForm::PartExplorerForm( QWidget *parent )
m_resultsList->addColumn( i18n( "Property" ) );
m_resultsList->addColumn( i18n( "Type" ) );
m_resultsList->addColumn( i18n( "Value" ) );
- m_resultsList->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3,
- (QSizePolicy::SizeType)3, 0, 0,
+ m_resultsList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3,
+ (TQSizePolicy::SizeType)3, 0, 0,
m_resultsList->sizePolicy().hasHeightForWidth() ) );
- QWhatsThis::add( m_resultsList, i18n("<b>Matching services</b><p>Results (if any) are shown grouped by matching service name.") );
+ TQWhatsThis::add( m_resultsList, i18n("<b>Matching services</b><p>Results (if any) are shown grouped by matching service name.") );
m_base->resultsLabel->setBuddy(m_resultsList);
m_base->layout()->add( m_resultsList );
setMainWidget( m_base );
@@ -131,16 +131,16 @@ PartExplorerForm::PartExplorerForm( QWidget *parent )
// Resize dialog
resize( 480, 512 );
-// connect( m_base->typeCombo->lineEdit(), SIGNAL(returnPressed()), this, SLOT(slotSearchRequested()) );
-// connect( m_base->constraintsText, SIGNAL(returnPressed()), this, SLOT(slotSearchRequested()) );
+// connect( m_base->typeCombo->lineEdit(), TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotSearchRequested()) );
+// connect( m_base->constraintsText, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotSearchRequested()) );
- connect( actionButton(User1), SIGNAL(clicked()), this, SLOT(slotSearchRequested()) );
-// connect( m_base->typeCombo->lineEdit(), SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotServicetypeChanged( const QString& ) ) );
+ connect( actionButton(User1), TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSearchRequested()) );
+// connect( m_base->typeCombo->lineEdit(), TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotServicetypeChanged( const TQString& ) ) );
// slotServicetypeChanged( m_base->typeCombo->lineEdit()->text() );
// populating with all known servicetypes
KServiceType::List serviceList = KServiceType::allServiceTypes();
- QStringList list;
+ TQStringList list;
KServiceType::List::Iterator it = serviceList.begin();
while( it != serviceList.end() )
{
@@ -161,8 +161,8 @@ PartExplorerForm::~PartExplorerForm()
void PartExplorerForm::slotSearchRequested()
{
- QString serviceType = m_base->typeCombo->lineEdit()->text();
- QString constraints = m_base->constraintsText->text();
+ TQString serviceType = m_base->typeCombo->lineEdit()->text();
+ TQString constraints = m_base->constraintsText->text();
kdDebug(9000) << "===> PartExplorerForm::slotSearchRequested(): " <<
" serviceType = " << serviceType << ", constraints = " << constraints << endl;
@@ -174,7 +174,7 @@ void PartExplorerForm::slotSearchRequested()
///////////////////////////////////////////////////////////////////////////////
-void PartExplorerForm::slotDisplayError( QString errorMessage )
+void PartExplorerForm::slotDisplayError( TQString errorMessage )
{
if (errorMessage.isEmpty())
{
@@ -205,21 +205,21 @@ void PartExplorerForm::fillServiceList( const KTrader::OfferList &services )
KService::Ptr service = (*it);
KListViewItem *serviceItem = new KListViewItem( this->m_resultsList, rootItem, service->name() );
- QStringList propertyNames = service->propertyNames();
- for ( QStringList::const_iterator it = propertyNames.begin(); it != propertyNames.end(); ++it )
+ TQStringList propertyNames = service->propertyNames();
+ for ( TQStringList::const_iterator it = propertyNames.begin(); it != propertyNames.end(); ++it )
{
- QString propertyName = (*it);
- QVariant property = service->property( propertyName );
- QString propertyType = property.typeName();
- QString propertyValue;
- if (propertyType == "QStringList") {
+ TQString propertyName = (*it);
+ TQVariant property = service->property( propertyName );
+ TQString propertyType = property.typeName();
+ TQString propertyValue;
+ if (propertyType == "TQStringList") {
propertyValue = property.toStringList().join(", ");
}
else {
propertyValue = property.toString();
}
- QString dProperty = " *** Found property < %1, %2, %3 >";
+ TQString dProperty = " *** Found property < %1, %2, %3 >";
dProperty = dProperty.arg( propertyName ).arg( propertyType ).arg( propertyValue );
kdDebug( 9000 ) << dProperty << endl;
diff --git a/parts/partexplorer/partexplorerform.h b/parts/partexplorer/partexplorerform.h
index 21fe2fba..7ccc140d 100644
--- a/parts/partexplorer/partexplorerform.h
+++ b/parts/partexplorer/partexplorerform.h
@@ -27,7 +27,7 @@ class PartExplorerForm : public KDialogBase
{
Q_OBJECT
public:
- PartExplorerForm( QWidget *parent = 0 );
+ PartExplorerForm( TQWidget *parent = 0 );
virtual ~PartExplorerForm();
/**
@@ -36,7 +36,7 @@ public:
void fillServiceList( const KTrader::OfferList &services );
public slots:
- void slotDisplayError( QString );
+ void slotDisplayError( TQString );
protected slots:
void slotSearchRequested();