summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/weather
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/plugins/weather')
-rw-r--r--kontact/plugins/weather/CMakeLists.txt8
-rw-r--r--kontact/plugins/weather/summarywidget.cpp10
-rw-r--r--kontact/plugins/weather/summarywidget.h2
-rw-r--r--kontact/plugins/weather/weather_plugin.cpp2
-rw-r--r--kontact/plugins/weather/weatherplugin.desktop68
5 files changed, 14 insertions, 76 deletions
diff --git a/kontact/plugins/weather/CMakeLists.txt b/kontact/plugins/weather/CMakeLists.txt
index 3c3928cb..0882e2d4 100644
--- a/kontact/plugins/weather/CMakeLists.txt
+++ b/kontact/plugins/weather/CMakeLists.txt
@@ -24,9 +24,11 @@ link_directories(
##### other data ################################
-install( FILES
- weatherplugin.desktop
- DESTINATION ${SERVICES_INSTALL_DIR}/kontact )
+tde_create_translated_desktop(
+ SOURCE weatherplugin.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kontact
+ PO_DIR kontact-desktops
+)
##### libkontact_weatherplugin (module) #########
diff --git a/kontact/plugins/weather/summarywidget.cpp b/kontact/plugins/weather/summarywidget.cpp
index 37fbe74d..323ad8de 100644
--- a/kontact/plugins/weather/summarywidget.cpp
+++ b/kontact/plugins/weather/summarywidget.cpp
@@ -69,7 +69,7 @@ SummaryWidget::SummaryWidget( TQWidget *parent, const char *name )
if ( reply.isValid() ) {
mStations = reply;
- connect( &mTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( timeout() ) );
+ connect( &mTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( timeout() ) );
mTimer.start( 0 );
} else {
kdDebug(5602) << "ERROR: dcop reply not valid..." << endl;
@@ -117,8 +117,8 @@ void SummaryWidget::updateView()
urlLabel->setAlignment( AlignTop );
layout->addMultiCellWidget( urlLabel, 0, 1, 0, 0 );
mLabels.append( urlLabel );
- connect ( urlLabel, TQT_SIGNAL( leftClickedURL( const TQString& ) ),
- this, TQT_SLOT( showReport( const TQString& ) ) );
+ connect ( urlLabel, TQ_SIGNAL( leftClickedURL( const TQString& ) ),
+ this, TQ_SLOT( showReport( const TQString& ) ) );
TQLabel* label = new TQLabel( this );
label->setText( TQString( "%1 (%2)" ).arg( (*it).name() ).arg( (*it).temperature() ) );
@@ -210,8 +210,8 @@ void SummaryWidget::updateSummary( bool )
void SummaryWidget::showReport( const TQString &stationID )
{
mProc = new TDEProcess;
- TQApplication::connect( mProc, TQT_SIGNAL( processExited( TDEProcess* ) ),
- this, TQT_SLOT( reportFinished( TDEProcess* ) ) );
+ TQApplication::connect( mProc, TQ_SIGNAL( processExited( TDEProcess* ) ),
+ this, TQ_SLOT( reportFinished( TDEProcess* ) ) );
*mProc << "kweatherreport";
*mProc << stationID;
diff --git a/kontact/plugins/weather/summarywidget.h b/kontact/plugins/weather/summarywidget.h
index 96361526..196269fd 100644
--- a/kontact/plugins/weather/summarywidget.h
+++ b/kontact/plugins/weather/summarywidget.h
@@ -86,7 +86,7 @@ class WeatherData
class SummaryWidget : public Kontact::Summary, public DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
//
K_DCOP
public:
diff --git a/kontact/plugins/weather/weather_plugin.cpp b/kontact/plugins/weather/weather_plugin.cpp
index 93a97bfc..506b16fd 100644
--- a/kontact/plugins/weather/weather_plugin.cpp
+++ b/kontact/plugins/weather/weather_plugin.cpp
@@ -32,7 +32,7 @@ K_EXPORT_COMPONENT_FACTORY( libkontact_weatherplugin,
WeatherPluginFactory( "kontact_weatherplugin" ) )
WeatherPlugin::WeatherPlugin( Kontact::Core *core, const char *name, const TQStringList& )
- : Kontact::Plugin( core, TQT_TQOBJECT(core), name ), mAboutData( 0 )
+ : Kontact::Plugin( core, core, name ), mAboutData( 0 )
{
setInstance( WeatherPluginFactory::instance() );
}
diff --git a/kontact/plugins/weather/weatherplugin.desktop b/kontact/plugins/weather/weatherplugin.desktop
index 04ae285a..1a5ab9a4 100644
--- a/kontact/plugins/weather/weatherplugin.desktop
+++ b/kontact/plugins/weather/weatherplugin.desktop
@@ -15,70 +15,6 @@ X-TDE-PluginInfo-Version=0.1
X-TDE-PluginInfo-License=LGPL
X-TDE-PluginInfo-EnabledByDefault=true
-Comment=Kontact Weather Component
-Comment[bg]=Приставка за метеорологичното време
-Comment[ca]=Component del temps del Kontact
-Comment[da]=Vejrkomponent til Kontact
-Comment[de]=Wetter-Komponente für Kontact
-Comment[el]=Συστατικό καιρού του Kontact
-Comment[et]=Kontacti ilmaplugin
-Comment[it]=Componente meteorologico di Kontact
-Comment[ja]=Kontact 気象情報コンポーネント
-Comment[nds]=Kontact-Wederkomponent
-Comment[nl]=Kontact Weercomponent
-Comment[pl]=Składnik Kontaktu wiadomości o pogodzie
-Comment[sr]=Компонента времена за Kontact
-Comment[sr@Latn]=Komponenta vremena za Kontact
-Comment[sv]=Kontacts väderkomponent
-Comment[zh_CN]=Kontact 天气插件
-Comment[zh_TW]=Kontact 天氣組件
Name=Weather Service
-Name[af]=Weer diens
-Name[ar]=خدمة الطقس
-Name[bg]=Информация за времето
-Name[br]=Servij an amzer
-Name[ca]=Servei meteorològic
-Name[cs]=Služba počasí
-Name[cy]=GwasanaethTywydd
-Name[da]=Vejrtjeneste
-Name[de]=Wetterdienst
-Name[el]=Υπηρεσία πρόβλεψης Καιρού
-Name[eo]=Veterservo
-Name[es]=Servicio meteorológico
-Name[et]=Ilmateade
-Name[eu]=Eguraldiaren zerbitzua
-Name[fa]=خدمت آب و هوا
-Name[fi]=Sääpalvelu
-Name[fr]=KWeatherService
-Name[fy]=Waarberjocht
-Name[ga]=Seirbhís Aimsire
-Name[gl]=Servicio do Tempo
-Name[he]=שירות מזג אוויר
-Name[hu]=Időjárás
-Name[is]=Veðurþjónusta
-Name[it]=Servizio meteorologico
-Name[ja]=気象サービス
-Name[kk]=Ауа райы қызметі
-Name[km]=សេវា​អាកាសធាតុ
-Name[lt]=Orų tarnyba
-Name[mk]=Временска прогноза
-Name[nb]=Værtjeneste
-Name[nds]=Wederdeenst
-Name[ne]=मौसम कार्य
-Name[nl]=Weerbericht
-Name[nn]=Vêrmelding
-Name[pl]=Pogoda
-Name[pt]=Serviço Meteorológico
-Name[pt_BR]=Serviço de Previsão do Tempo
-Name[ru]=Погода
-Name[sk]=Služba počasie
-Name[sl]=Vremenska storitev
-Name[sr]=Време
-Name[sr@Latn]=Vreme
-Name[sv]=Väderleksprognos
-Name[th]=รายงานอากาศ
-Name[tr]=Hava Durumu Servisi
-Name[uk]=Служба погоди
-Name[uz]=Об-ҳаво хизмати
-Name[zh_CN]=天气服务
-Name[zh_TW]=天氣服務
+
+Comment=Kontact Weather Component