summaryrefslogtreecommitdiffstats
path: root/parts/partexplorer/partexplorerform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/partexplorer/partexplorerform.cpp')
-rw-r--r--parts/partexplorer/partexplorerform.cpp72
1 files changed, 36 insertions, 36 deletions
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;