diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
commit | f4fae92b6768541e2952173c3d4b09040f95bf7e (patch) | |
tree | d8c5d93232235cd635f3310b4d95490df181ba2d /kontact/plugins/weather | |
parent | 125c0a08265b75a133644d3b55f47e37c919f45d (diff) | |
download | tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip |
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
Diffstat (limited to 'kontact/plugins/weather')
-rw-r--r-- | kontact/plugins/weather/summarywidget.cpp | 22 | ||||
-rw-r--r-- | kontact/plugins/weather/weather_plugin.cpp | 4 | ||||
-rw-r--r-- | kontact/plugins/weather/weather_plugin.h | 2 |
3 files changed, 14 insertions, 14 deletions
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 ); } diff --git a/kontact/plugins/weather/weather_plugin.cpp b/kontact/plugins/weather/weather_plugin.cpp index a3ea74d1e..d42a24f61 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 4ab019645..924eb0a32 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(); |