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.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/parts/partexplorer/partexplorerform.cpp b/parts/partexplorer/partexplorerform.cpp
index f944b393..d8b0cccf 100644
--- a/parts/partexplorer/partexplorerform.cpp
+++ b/parts/partexplorer/partexplorerform.cpp
@@ -35,9 +35,9 @@ namespace PartExplorer{
class PropertyItem : public KListViewItem
{
public:
- PropertyItem( KListViewItem *parent, const TQString &propertyName,
+ PropertyItem( KListViewItem *tqparent, const TQString &propertyName,
const TQString &propertyType, const TQString &propertyValue )
- : KListViewItem( parent )
+ : KListViewItem( tqparent )
{
setText( 0, propertyName );
setText( 1, propertyType );
@@ -47,7 +47,7 @@ public:
TQString tipText() const
{
TQString tip = i18n("Name: %1 | Type: %2 | Value: %3");
- return tip.arg( text(0) ).arg( text(1) ).arg( text(2) );
+ return tip.tqarg( text(0) ).tqarg( text(1) ).tqarg( text(2) );
}
};
@@ -58,10 +58,10 @@ public:
class ResultList;
-class ResultsToolTip: public QToolTip
+class ResultsToolTip: public TQToolTip
{
public:
- ResultsToolTip( ResultsList* parent );
+ ResultsToolTip( ResultsList* tqparent );
virtual void maybeTip( const TQPoint& p );
private:
@@ -71,8 +71,8 @@ private:
class ResultsList : public KListView
{
public:
- ResultsList( TQWidget *parent )
- : KListView( parent, "resultslist" )
+ ResultsList( TQWidget *tqparent )
+ : KListView( tqparent, "resultslist" )
{
this->setShowToolTips( false );
new ResultsToolTip( this );
@@ -86,8 +86,8 @@ public:
}
};
-ResultsToolTip::ResultsToolTip( ResultsList* parent )
- : TQToolTip( parent->viewport() ), m_resultsList( parent )
+ResultsToolTip::ResultsToolTip( ResultsList* tqparent )
+ : TQToolTip( tqparent->viewport() ), m_resultsList( tqparent )
{
}
@@ -96,7 +96,7 @@ void ResultsToolTip::maybeTip( const TQPoint& p )
PartExplorer::PropertyItem *item = dynamic_cast<PartExplorer::PropertyItem*>( m_resultsList->itemAt( p ) );
if ( item )
{
- TQRect r = m_resultsList->itemRect( item );
+ TQRect r = m_resultsList->tqitemRect( item );
if ( r.isValid() )
tip( r, item->tipText() );
}
@@ -107,8 +107,8 @@ void ResultsToolTip::maybeTip( const TQPoint& p )
// class PartExplorerForm
///////////////////////////////////////////////////////////////////////////////
-PartExplorerForm::PartExplorerForm( TQWidget *parent )
- : KDialogBase( parent, "parteplorerform", false,
+PartExplorerForm::PartExplorerForm( TQWidget *tqparent )
+ : KDialogBase( tqparent, "parteplorerform", false,
i18n("Part Explorer - A Services Lister"), User1 | Close, User1, true )
{
m_base = new PartExplorerFormBase( this, "partexplorerformbase", 0 );
@@ -116,12 +116,12 @@ PartExplorerForm::PartExplorerForm( TQWidget *parent )
m_resultsList->addColumn( i18n( "Property" ) );
m_resultsList->addColumn( i18n( "Type" ) );
m_resultsList->addColumn( i18n( "Value" ) );
- m_resultsList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3,
+ m_resultsList->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3,
(TQSizePolicy::SizeType)3, 0, 0,
m_resultsList->sizePolicy().hasHeightForWidth() ) );
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 );
+ m_base->tqlayout()->add( m_resultsList );
setMainWidget( m_base );
m_base->typeCombo->lineEdit()->setFocus();
@@ -212,7 +212,7 @@ void PartExplorerForm::fillServiceList( const KTrader::OfferList &services )
TQVariant property = service->property( propertyName );
TQString propertyType = property.typeName();
TQString propertyValue;
- if (propertyType == "TQStringList") {
+ if (propertyType == TQSTRINGLIST_OBJECT_NAME_STRING) {
propertyValue = property.toStringList().join(", ");
}
else {
@@ -220,7 +220,7 @@ void PartExplorerForm::fillServiceList( const KTrader::OfferList &services )
}
TQString dProperty = " *** Found property < %1, %2, %3 >";
- dProperty = dProperty.arg( propertyName ).arg( propertyType ).arg( propertyValue );
+ dProperty = dProperty.tqarg( propertyName ).tqarg( propertyType ).tqarg( propertyValue );
kdDebug( 9000 ) << dProperty << endl;
new PartExplorer::PropertyItem( serviceItem, propertyName, propertyType, propertyValue );