summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/weather
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/plugins/weather')
-rw-r--r--kontact/plugins/weather/summarywidget.cpp22
-rw-r--r--kontact/plugins/weather/weather_plugin.cpp4
-rw-r--r--kontact/plugins/weather/weather_plugin.h2
3 files changed, 14 insertions, 14 deletions
diff --git a/kontact/plugins/weather/summarywidget.cpp b/kontact/plugins/weather/summarywidget.cpp
index 8c106409..abe11764 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 );
}
diff --git a/kontact/plugins/weather/weather_plugin.cpp b/kontact/plugins/weather/weather_plugin.cpp
index a3ea74d1..d42a24f6 100644
--- a/kontact/plugins/weather/weather_plugin.cpp
+++ b/kontact/plugins/weather/weather_plugin.cpp
@@ -37,9 +37,9 @@ WeatherPlugin::WeatherPlugin( Kontact::Core *core, const char *name, const TQStr
setInstance( WeatherPluginFactory::instance() );
}
-Kontact::Summary *WeatherPlugin::createSummaryWidget( TQWidget *parentWidget )
+Kontact::Summary *WeatherPlugin::createSummaryWidget( TQWidget *tqparentWidget )
{
- return new SummaryWidget( parentWidget );
+ return new SummaryWidget( tqparentWidget );
}
const KAboutData *WeatherPlugin::aboutData()
diff --git a/kontact/plugins/weather/weather_plugin.h b/kontact/plugins/weather/weather_plugin.h
index 4ab01964..924eb0a3 100644
--- a/kontact/plugins/weather/weather_plugin.h
+++ b/kontact/plugins/weather/weather_plugin.h
@@ -31,7 +31,7 @@ class WeatherPlugin : public Kontact::Plugin
WeatherPlugin( Kontact::Core *core, const char *name, const TQStringList& );
WeatherPlugin();
- virtual Kontact::Summary *createSummaryWidget( TQWidget *parentWidget );
+ virtual Kontact::Summary *createSummaryWidget( TQWidget *tqparentWidget );
const KAboutData *aboutData();