From 59a076e9336f1eebda8650437e6bc61077be1516 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:59:40 -0600 Subject: Remove additional unneeded tq method conversions --- kweather/dockwidget.cpp | 8 ++++---- kweather/kweather.cpp | 2 +- kweather/metar_parser.cpp | 10 +++++----- kweather/prefdialogdata.ui | 2 +- kweather/reportview.cpp | 26 +++++++++++++------------- kweather/serviceconfigwidget.cpp | 2 +- kweather/weatherbutton.cpp | 6 +++--- kweather/weatherlib.cpp | 4 ++-- 8 files changed, 30 insertions(+), 30 deletions(-) (limited to 'kweather') diff --git a/kweather/dockwidget.cpp b/kweather/dockwidget.cpp index bfcc097..f5205d4 100644 --- a/kweather/dockwidget.cpp +++ b/kweather/dockwidget.cpp @@ -112,19 +112,19 @@ void dockwidget::showWeather() "" + i18n( "Rel. Humidity:" ) + "%4" "" + i18n( "Wind Speed:" ) + "%5") - .tqarg(temp).tqarg(dewPoint).tqarg(pressure).tqarg(relHumidity).tqarg(wind); + .arg(temp).arg(dewPoint).arg(pressure).arg(relHumidity).arg(wind); if ( !heatIndex.isEmpty() ) - tip += TQString("" + i18n( "Heat Index:" ) + "%1").tqarg(heatIndex); + tip += TQString("" + i18n( "Heat Index:" ) + "%1").arg(heatIndex); else if ( !windChill.isEmpty() ) - tip += TQString("" + i18n( "Wind Chill:" ) + "%1").tqarg(windChill); + tip += TQString("" + i18n( "Wind Chill:" ) + "%1").arg(windChill); else tip += "  "; tip += ""; tip += TQString("" + i18n( "Sunrise:" ) + "%1" + "" + i18n( "Sunset:" ) + "%2") - .tqarg(sunRiseTime).tqarg(sunSetTime); + .arg(sunRiseTime).arg(sunSetTime); tip += ""; diff --git a/kweather/kweather.cpp b/kweather/kweather.cpp index 324a610..9dd5def 100644 --- a/kweather/kweather.cpp +++ b/kweather/kweather.cpp @@ -86,7 +86,7 @@ kweather::~kweather() void kweather::initContextMenu() { mContextMenu = new KPopupMenu(this); - mContextMenu->insertTitle(i18n("KWeather - %1").tqarg( reportLocation ), -1, 0); + mContextMenu->insertTitle(i18n("KWeather - %1").arg( reportLocation ), -1, 0); mContextMenu->insertItem(SmallIcon("viewmag"), i18n("Show &Report"), this, TQT_SLOT(doReport()), 0, -1, 1); mContextMenu->insertItem(SmallIcon("reload"), i18n("&Update Now"), diff --git a/kweather/metar_parser.cpp b/kweather/metar_parser.cpp index d65d4da..b6715f0 100644 --- a/kweather/metar_parser.cpp +++ b/kweather/metar_parser.cpp @@ -170,22 +170,22 @@ bool MetarParser::parseCover(const TQString &s) if (sCode == "FEW") { - skycondition = i18n( "Few clouds at %1" ).tqarg(sClouds); + skycondition = i18n( "Few clouds at %1" ).arg(sClouds); weatherInfo.clouds += 2; } else if (sCode == "SCT") { - skycondition = i18n( "Scattered clouds at %1" ).tqarg(sClouds); + skycondition = i18n( "Scattered clouds at %1" ).arg(sClouds); weatherInfo.clouds += 4; } else if (sCode == "BKN") { - skycondition = i18n( "Broken clouds at %1" ).tqarg(sClouds); + skycondition = i18n( "Broken clouds at %1" ).arg(sClouds); weatherInfo.clouds += 8; } else if (sCode == "OVC") { - skycondition = i18n( "Overcast clouds at %1" ).tqarg(sClouds); + skycondition = i18n( "Overcast clouds at %1" ).arg(sClouds); weatherInfo.clouds += 64; } else if ((sCode == "CLR") || (sCode == "SKC") || (sCode == "CAVOK")) @@ -343,7 +343,7 @@ bool MetarParser::parseCurrent(const TQString &s) else if (sCode.contains("DS")) phenomena = i18n("Dust Storm"); - if (currentWeather.isEmpty()) currentWeather = i18n("%1 is the intensity, %2 is the descriptor and %3 is the phenomena", "%1 %2 %3").tqarg(intensity).tqarg(descriptor).tqarg(phenomena); + if (currentWeather.isEmpty()) currentWeather = i18n("%1 is the intensity, %2 is the descriptor and %3 is the phenomena", "%1 %2 %3").arg(intensity).arg(descriptor).arg(phenomena); if (!currentWeather.isEmpty()) weatherInfo.qsCurrentList << currentWeather; diff --git a/kweather/prefdialogdata.ui b/kweather/prefdialogdata.ui index 596c54a..7b61ead 100644 --- a/kweather/prefdialogdata.ui +++ b/kweather/prefdialogdata.ui @@ -129,7 +129,7 @@ Panel Display Options - + AlignVCenter|AlignLeft diff --git a/kweather/reportview.cpp b/kweather/reportview.cpp index f25df19..3ef28b4 100644 --- a/kweather/reportview.cpp +++ b/kweather/reportview.cpp @@ -93,7 +93,7 @@ void reportView::render(){ TQStringList cover = m_weatherService->cover(m_locationCode ); TQStringList weather = m_weatherService->weather(m_locationCode ); - setCaption(i18n("Weather Report - %1").tqarg( locationName ) ); + setCaption(i18n("Weather Report - %1").arg( locationName ) ); TQString weatherText = "
    \n"; @@ -114,24 +114,24 @@ void reportView::render(){ TQString contents = "").tqarg( TQApplication::reverseLayout()?"rtl":"ltr") + - "
    " + i18n( "Weather Report - %1 - %2" ).tqarg( locationName ).tqarg( countryName ) + + .arg(bgColor).arg(textColor).arg(textColor).arg(textColor).arg(textColor) + + TQString("").arg( TQApplication::reverseLayout()?"rtl":"ltr") + + "
    " + i18n( "Weather Report - %1 - %2" ).arg( locationName ).arg( countryName ) + "
    \n"; if ( ! date.isEmpty() ) - contents += "
    " + i18n( "Latest data from %1" ).tqarg(date) + "
    \n"; + contents += "
    " + i18n( "Latest data from %1" ).arg(date) + "
    \n"; contents += TQString( "" "") - .tqarg(bgColor).tqarg(KURL(icon).url()).tqarg(weatherText) + + .arg(bgColor).arg(KURL(icon).url()).arg(weatherText) + "
    " "%3
    " + TQString("" @@ -145,15 +145,15 @@ void reportView::render(){ + "" "") - .tqarg(temp).tqarg(dewPoint).tqarg(pressure).tqarg(relHumidity) - .tqarg(wind) + ""; + .arg(temp).arg(dewPoint).arg(pressure).arg(relHumidity) + .arg(wind) + ""; if (!heatIndex.isEmpty()) contents += TQString("").tqarg(heatIndex); + + i18n( "Heat Index:" ) + "").arg(heatIndex); else if (!windChill.isEmpty()) contents += TQString("").tqarg(windChill); + + i18n( "Wind Chill:" ) + "").arg(windChill); else contents += ""; contents += ""; @@ -162,7 +162,7 @@ void reportView::render(){ + i18n( "Sunrise:" ) + "" + "") - .tqarg(sunRiseTime).tqarg(sunSetTime); + .arg(sunRiseTime).arg(sunSetTime); contents += "
    " + i18n( "Temperature:" ) + "%1%4
    " + i18n( "Wind Speed:" ) + "%5  " - + i18n( "Heat Index:" ) + "%1%1" - + i18n( "Wind Chill:" ) + "%1%1  
    %1 " + i18n( "Sunset:" ) + "%2
    "; diff --git a/kweather/serviceconfigwidget.cpp b/kweather/serviceconfigwidget.cpp index 08a3b51..a71d4b6 100644 --- a/kweather/serviceconfigwidget.cpp +++ b/kweather/serviceconfigwidget.cpp @@ -194,7 +194,7 @@ void ServiceConfigWidget::loadLocations() parseStationEntry( entryIt.data(), station, uid ); new StationItem( stateItem, station, uid ); mStationMap.insert( uid, TQString( "%1, %2" ) - .tqarg( station ).tqarg( *stateIt ) ); + .arg( station ).arg( *stateIt ) ); } } } diff --git a/kweather/weatherbutton.cpp b/kweather/weatherbutton.cpp index ceb4360..ee88962 100644 --- a/kweather/weatherbutton.cpp +++ b/kweather/weatherbutton.cpp @@ -124,14 +124,14 @@ void WeatherButton::slotIconChanged( int group ) return; generateIcons(); - tqrepaint( false ); + repaint( false ); } void WeatherButton::enterEvent( TQEvent *e ) { m_highlight = true; - tqrepaint( false ); + repaint( false ); TQButton::enterEvent( e ); } @@ -139,7 +139,7 @@ void WeatherButton::leaveEvent( TQEvent *e ) { m_highlight = false; - tqrepaint( false ); + repaint( false ); TQButton::enterEvent( e ); } diff --git a/kweather/weatherlib.cpp b/kweather/weatherlib.cpp index ae40734..59a10dc 100644 --- a/kweather/weatherlib.cpp +++ b/kweather/weatherlib.cpp @@ -144,7 +144,7 @@ void WeatherLib::slotCopyDone(KIO::Job* job) // File error kdDebug( 12006 ) << "File empty error..." << endl; KPassivePopup::message( i18n("KWeather Error!"), - i18n("The temp file %1 was empty.").tqarg(d->target->name()), 0L,"error" ); + i18n("The temp file %1 was empty.").arg(d->target->name()), 0L,"error" ); d->updated = false; } } @@ -153,7 +153,7 @@ void WeatherLib::slotCopyDone(KIO::Job* job) // File error kdDebug( 12006 ) << "File read error..." << endl; KPassivePopup::message( i18n("KWeather Error!"), - i18n("Could not read the temp file %1.").tqarg(d->target->name()), 0L,"error" ); + i18n("Could not read the temp file %1.").arg(d->target->name()), 0L,"error" ); d->updated = false; } delete d->target; -- cgit v1.2.1