From f4fae92b6768541e2952173c3d4b09040f95bf7e Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 16 Feb 2011 20:17:18 +0000 Subject: Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kontact/plugins/weather/summarywidget.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kontact/plugins/weather/summarywidget.cpp') diff --git a/kontact/plugins/weather/summarywidget.cpp b/kontact/plugins/weather/summarywidget.cpp index 8c1064094..abe117648 100644 --- a/kontact/plugins/weather/summarywidget.cpp +++ b/kontact/plugins/weather/summarywidget.cpp @@ -43,7 +43,7 @@ SummaryWidget::SummaryWidget( TQWidget *parent, const char *name ) DCOPObject( "WeatherSummaryWidget" ), mProc( 0 ) { mLayout = new TQVBoxLayout( this, 3, 3 ); - mLayout->setAlignment( Qt::AlignTop ); + mLayout->tqsetAlignment( Qt::AlignTop ); TQPixmap icon = KGlobal::iconLoader()->loadIcon( "kweather", KIcon::Desktop, KIcon::SizeMedium ); TQWidget *header = createHeader( this, icon, i18n( "Weather Service" ) ); @@ -106,16 +106,16 @@ void SummaryWidget::updateView() TQImage img; img = (*it).icon(); - TQGridLayout *layout = new TQGridLayout( mLayout, 3, 3, 3 ); - mLayouts.append( layout ); + TQGridLayout *tqlayout = new TQGridLayout( mLayout, 3, 3, 3 ); + mLayouts.append( tqlayout ); KURLLabel* urlLabel = new KURLLabel( this ); urlLabel->installEventFilter( this ); urlLabel->setURL( (*it).stationID() ); urlLabel->setPixmap( img.smoothScale( 32, 32 ) ); - urlLabel->setMaximumSize( urlLabel->sizeHint() ); - urlLabel->setAlignment( AlignTop ); - layout->addMultiCellWidget( urlLabel, 0, 1, 0, 0 ); + urlLabel->setMaximumSize( urlLabel->tqsizeHint() ); + urlLabel->tqsetAlignment( AlignTop ); + tqlayout->addMultiCellWidget( urlLabel, 0, 1, 0, 0 ); mLabels.append( urlLabel ); connect ( urlLabel, TQT_SIGNAL( leftClickedURL( const TQString& ) ), this, TQT_SLOT( showReport( const TQString& ) ) ); @@ -125,8 +125,8 @@ void SummaryWidget::updateView() TQFont font = label->font(); font.setBold( true ); label->setFont( font ); - label->setAlignment( AlignLeft ); - layout->addMultiCellWidget( label, 0, 0, 1, 2 ); + label->tqsetAlignment( AlignLeft ); + tqlayout->addMultiCellWidget( label, 0, 0, 1, 2 ); mLabels.append( label ); TQString labelText; @@ -140,11 +140,11 @@ void SummaryWidget::updateView() .arg( i18n( "Rel. Humidity" ) ) .arg( (*it).relativeHumidity() ); - TQToolTip::add( label, labelText.replace( " ", " " ) ); + TQToolTip::add( label, labelText.tqreplace( " ", " " ) ); label = new TQLabel( cover, this ); - label->setAlignment( AlignLeft ); - layout->addMultiCellWidget( label, 1, 1, 1, 2 ); + label->tqsetAlignment( AlignLeft ); + tqlayout->addMultiCellWidget( label, 1, 1, 1, 2 ); mLabels.append( label ); } -- cgit v1.2.1