From 6cdf35ab11c322f33feca5baf090ef56068b6049 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:50:42 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- kweather/dockwidget.cpp | 80 ++++++++++++++++++++-------------------- kweather/kcmweather.cpp | 8 ++-- kweather/kcmweatherservice.cpp | 6 +-- kweather/kweather.cpp | 6 +-- kweather/metar_parser.cpp | 28 +++++++------- kweather/metar_parser.h | 2 +- kweather/prefdialogdata.ui | 16 ++++---- kweather/reportview.cpp | 28 +++++++------- kweather/serviceconfigdata.ui | 6 +-- kweather/serviceconfigwidget.cpp | 2 +- kweather/sidebarwidgetbase.ui | 2 +- kweather/sun.h | 2 +- kweather/weatherbar.cpp | 2 +- kweather/weatherbar.h | 2 +- kweather/weatherbutton.cpp | 6 +-- kweather/weatherlib.cpp | 12 +++--- 16 files changed, 104 insertions(+), 104 deletions(-) (limited to 'kweather') diff --git a/kweather/dockwidget.cpp b/kweather/dockwidget.cpp index 04576b1..390d455 100644 --- a/kweather/dockwidget.cpp +++ b/kweather/dockwidget.cpp @@ -21,7 +21,7 @@ #include "weatherservice_stub.h" #include -#include +#include #include #include #include @@ -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 += ""; @@ -184,12 +184,12 @@ void dockwidget::initDock() mainLayout->setMargin(0); mainLayout->addWidget(m_button, 0, TQt::AlignCenter); - TQBoxLayout *tqlayout = new TQBoxLayout(mainLayout, TQBoxLayout::TopToBottom); - tqlayout->setSpacing(0); - tqlayout->setMargin(0); - tqlayout->addWidget(m_lblTemp); - tqlayout->addWidget(m_lblWind); - tqlayout->addWidget(m_lblPres); + TQBoxLayout *layout = new TQBoxLayout(mainLayout, TQBoxLayout::TopToBottom); + layout->setSpacing(0); + layout->setMargin(0); + layout->addWidget(m_lblTemp); + layout->addWidget(m_lblWind); + layout->addWidget(m_lblPres); mainLayout->addSpacing(8); @@ -210,21 +210,21 @@ void dockwidget::resizeView( const TQSize &size ) if ( m_mode == ShowAll ) { - if ( h <= 128 ) // left to right tqlayout + if ( h <= 128 ) // left to right layout { - static_cast(tqlayout())->setDirection(TQBoxLayout::LeftToRight); - m_lblTemp->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter); - m_lblWind->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter); - m_lblPres->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter); + static_cast(layout())->setDirection(TQBoxLayout::LeftToRight); + m_lblTemp->setAlignment(TQt::AlignAuto | TQt::AlignVCenter); + m_lblWind->setAlignment(TQt::AlignAuto | TQt::AlignVCenter); + m_lblPres->setAlignment(TQt::AlignAuto | TQt::AlignVCenter); } else // top to bottom { - static_cast(tqlayout())->setDirection(TQBoxLayout::TopToBottom); + static_cast(layout())->setDirection(TQBoxLayout::TopToBottom); TQFontMetrics fm(m_font); h = 128 - (3 * fm.height()); // 3 lines of text below the button - m_lblTemp->tqsetAlignment(TQt::AlignCenter); - m_lblWind->tqsetAlignment(TQt::AlignCenter); - m_lblPres->tqsetAlignment(TQt::AlignCenter); + m_lblTemp->setAlignment(TQt::AlignCenter); + m_lblWind->setAlignment(TQt::AlignCenter); + m_lblPres->setAlignment(TQt::AlignCenter); } m_button->setFixedSize(h, h); } @@ -232,15 +232,15 @@ void dockwidget::resizeView( const TQSize &size ) { if ( h <= 32 ) // left to right { - static_cast(tqlayout())->setDirection(TQBoxLayout::LeftToRight); - m_lblTemp->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter); + static_cast(layout())->setDirection(TQBoxLayout::LeftToRight); + m_lblTemp->setAlignment(TQt::AlignAuto | TQt::AlignVCenter); } else // top to bottom { - static_cast(tqlayout())->setDirection(TQBoxLayout::TopToBottom); + static_cast(layout())->setDirection(TQBoxLayout::TopToBottom); TQFontMetrics fm(m_font); h = TQMIN(128, h) - fm.height(); - m_lblTemp->tqsetAlignment(TQt::AlignCenter); + m_lblTemp->setAlignment(TQt::AlignCenter); } m_button->setFixedSize(h, h); } @@ -259,21 +259,21 @@ void dockwidget::resizeView( const TQSize &size ) { if ( w <= 128 ) // top to bottom { - static_cast(tqlayout())->setDirection(TQBoxLayout::TopToBottom); - m_lblTemp->tqsetAlignment(TQt::AlignCenter); - m_lblWind->tqsetAlignment(TQt::AlignCenter); - m_lblPres->tqsetAlignment(TQt::AlignCenter); + static_cast(layout())->setDirection(TQBoxLayout::TopToBottom); + m_lblTemp->setAlignment(TQt::AlignCenter); + m_lblWind->setAlignment(TQt::AlignCenter); + m_lblPres->setAlignment(TQt::AlignCenter); TQFontMetrics fm(m_font); h = h - (3 * fm.height()); // 3 lines of text below the button h = TQMIN(w, h); } - else // left to right tqlayout + else // left to right layout { - static_cast(tqlayout())->setDirection(TQBoxLayout::LeftToRight); - m_lblTemp->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter); - m_lblWind->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter); - m_lblPres->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter); + static_cast(layout())->setDirection(TQBoxLayout::LeftToRight); + m_lblTemp->setAlignment(TQt::AlignAuto | TQt::AlignVCenter); + m_lblWind->setAlignment(TQt::AlignAuto | TQt::AlignVCenter); + m_lblPres->setAlignment(TQt::AlignAuto | TQt::AlignVCenter); } m_button->setFixedSize(h, h); } @@ -281,15 +281,15 @@ void dockwidget::resizeView( const TQSize &size ) { if ( w <= 128 ) // top to bottom { - static_cast(tqlayout())->setDirection(TQBoxLayout::TopToBottom); - m_lblTemp->tqsetAlignment(TQt::AlignCenter); + static_cast(layout())->setDirection(TQBoxLayout::TopToBottom); + m_lblTemp->setAlignment(TQt::AlignCenter); h = w; } - else // left to right tqlayout + else // left to right layout { - static_cast(tqlayout())->setDirection(TQBoxLayout::LeftToRight); - m_lblTemp->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter); + static_cast(layout())->setDirection(TQBoxLayout::LeftToRight); + m_lblTemp->setAlignment(TQt::AlignAuto | TQt::AlignVCenter); h = static_cast(w * 0.33); } @@ -310,7 +310,7 @@ int dockwidget::widthForHeight(int h) if ( m_mode == ShowAll ) { - if ( h <= 128 ) // left to right tqlayout + if ( h <= 128 ) // left to right layout { int pixelSize = h/3 - 3; pixelSize = TQMIN(pixelSize, fi.pixelSize()); // don't make it too large @@ -337,7 +337,7 @@ int dockwidget::widthForHeight(int h) } else if ( m_mode == ShowTempOnly ) { - if ( h <= 32 ) // left to right tqlayout + if ( h <= 32 ) // left to right layout { int pixelSize = h - 3; pixelSize = TQMIN(pixelSize, fi.pixelSize()); // don't make it too large diff --git a/kweather/kcmweather.cpp b/kweather/kcmweather.cpp index d49d3a0..1037fa1 100644 --- a/kweather/kcmweather.cpp +++ b/kweather/kcmweather.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include @@ -54,12 +54,12 @@ KCMWeather::KCMWeather( TQWidget *parent, const char *name ) { mWeatherService = new WeatherService_stub( "KWeatherService", "WeatherService" ); - TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); + TQVBoxLayout *layout = new TQVBoxLayout( this ); mWidget = new prefsDialogData( this ); mWidget->m_reportLocation->setFocus(); - tqlayout->addWidget( mWidget ); - tqlayout->addStretch(); + layout->addWidget( mWidget ); + layout->addStretch(); fillStationList(); load(); diff --git a/kweather/kcmweatherservice.cpp b/kweather/kcmweatherservice.cpp index db8325d..203bddf 100644 --- a/kweather/kcmweatherservice.cpp +++ b/kweather/kcmweatherservice.cpp @@ -21,7 +21,7 @@ without including the source code for TQt in the source distribution. */ -#include +#include #include #include @@ -41,13 +41,13 @@ extern "C" KCMWeatherService::KCMWeatherService( TQWidget *parent, const char *name ) : KCModule( parent, name ) { - TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); + TQVBoxLayout *layout = new TQVBoxLayout( this ); mWidget = new ServiceConfigWidget( this ); // not needed, as a change immediately changes the service //connect(mWidget, TQT_SIGNAL(changed(bool)), this, TQT_SIGNAL(changed(bool))); - tqlayout->addWidget( mWidget ); + layout->addWidget( mWidget ); KAboutData *about = new KAboutData( "kcmweatherservice", I18N_NOOP( "KWeather Configure Dialog" ), 0, 0, KAboutData::License_GPL, diff --git a/kweather/kweather.cpp b/kweather/kweather.cpp index 9b8c481..9685543 100644 --- a/kweather/kweather.cpp +++ b/kweather/kweather.cpp @@ -31,7 +31,7 @@ #include #include -#include +#include #include "kweather.h" #include "reportview.h" @@ -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"), @@ -171,7 +171,7 @@ void kweather::preferences() /** The help handler */ void kweather::help() { - kapp->invokeHelp(TQString(), TQString::tqfromLatin1("kweather")); + kapp->invokeHelp(TQString(), TQString::fromLatin1("kweather")); } /** Display the current weather report. */ diff --git a/kweather/metar_parser.cpp b/kweather/metar_parser.cpp index 2d3eab9..b6715f0 100644 --- a/kweather/metar_parser.cpp +++ b/kweather/metar_parser.cpp @@ -147,7 +147,7 @@ bool MetarParser::parseCover(const TQString &s) { if (CoverRegExp.search(s) > -1) { - kdDebug(12006) << "Cover: " << TQString(CoverRegExp.tqcapturedTexts().join("-")) + kdDebug(12006) << "Cover: " << TQString(CoverRegExp.capturedTexts().join("-")) << endl; TQString sCode = CoverRegExp.cap(1); @@ -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")) @@ -211,7 +211,7 @@ bool MetarParser::parseCurrent(const TQString &s) TQString sCode = CurrentRegExp.cap(2); TQString intensity, descriptor, phenomena, currentWeather; - kdDebug(12006) << "Current: " << TQString(CurrentRegExp.tqcapturedTexts().join("-")) << endl; + kdDebug(12006) << "Current: " << TQString(CurrentRegExp.capturedTexts().join("-")) << endl; // Decode the intensity if (sIntensity == "+") @@ -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; @@ -358,7 +358,7 @@ bool MetarParser::parseTemperature(const TQString &s) { if (TempRegExp.search(s) > -1) { - kdDebug(12006) << "Temp: " << TQString(TempRegExp.tqcapturedTexts().join("-")) + kdDebug(12006) << "Temp: " << TQString(TempRegExp.capturedTexts().join("-")) << endl; float fTemp = TempRegExp.cap(2).toFloat(); @@ -379,7 +379,7 @@ bool MetarParser::parseTemperatureTenths(const TQString &s) { if (TempTenRegExp.search(s) > -1) { - kdDebug(12006) << "Temp Tenths: " << TQString(TempTenRegExp.tqcapturedTexts().join("-")) + kdDebug(12006) << "Temp Tenths: " << TQString(TempTenRegExp.capturedTexts().join("-")) << endl; float temperature = TempTenRegExp.cap( 1 ).toFloat() / 10; @@ -473,7 +473,7 @@ bool MetarParser::parseDate(const TQString &s) { if (DateRegExp.search(s) > -1) { - kdDebug(12006) << "Date: " << TQString(DateRegExp.tqcapturedTexts().join("-")) + kdDebug(12006) << "Date: " << TQString(DateRegExp.capturedTexts().join("-")) << endl; TQString dateString = DateRegExp.cap(1); TQString day, month, year; @@ -496,7 +496,7 @@ bool MetarParser::parseTime(const TQString &s) { if (TimeRegExp.search(s) > -1) { - kdDebug(12006) << "Time: " << TQString(TimeRegExp.tqcapturedTexts().join("-")) + kdDebug(12006) << "Time: " << TQString(TimeRegExp.capturedTexts().join("-")) << endl; TQString hour, minute, dateString; @@ -521,7 +521,7 @@ bool MetarParser::parseVisibility(TQStringList::ConstIterator it) { fVisibility = VisRegExp.cap(1).toFloat(); - kdDebug(12006) << "Visibility: " << TQString(VisRegExp.tqcapturedTexts().join("-")) + kdDebug(12006) << "Visibility: " << TQString(VisRegExp.capturedTexts().join("-")) << endl; } @@ -564,7 +564,7 @@ bool MetarParser::parsePressure( const TQString &s) TQString type = PressRegExp.cap(1); float fPressure = PressRegExp.cap(2).toFloat(); - kdDebug(12006) << "Pressure: " << TQString(PressRegExp.tqcapturedTexts().join("-")) + kdDebug(12006) << "Pressure: " << TQString(PressRegExp.capturedTexts().join("-")) << endl; if (m_units == KLocale::Metric) @@ -643,7 +643,7 @@ bool MetarParser::parseWindSpeed(const TQString &s) float gustSpeed = WindRegExp.cap(3).toFloat(); TQString sWindUnit = WindRegExp.cap(4); - kdDebug(12006) << "Wind: " << WindRegExp.tqcapturedTexts().join("-") + kdDebug(12006) << "Wind: " << WindRegExp.capturedTexts().join("-") << endl; if (m_units == KLocale::Metric) diff --git a/kweather/metar_parser.h b/kweather/metar_parser.h index 7d94149..daeddad 100644 --- a/kweather/metar_parser.h +++ b/kweather/metar_parser.h @@ -60,7 +60,7 @@ class MetarParser public: MetarParser(StationDatabase *stationDB, KLocale::MeasureSystem units = KLocale::Imperial, - TQDate date = TQDate::tqcurrentDate(), + TQDate date = TQDate::currentDate(), TQTime time = TQTime::currentTime(), unsigned int localUTCOffset = KRFCDate::localUTCOffset()); diff --git a/kweather/prefdialogdata.ui b/kweather/prefdialogdata.ui index 590a2c2..c0878ce 100644 --- a/kweather/prefdialogdata.ui +++ b/kweather/prefdialogdata.ui @@ -21,7 +21,7 @@ 0 - + 0 0 @@ -85,7 +85,7 @@ 0 - + 0 0 @@ -102,7 +102,7 @@ MinimumExpanding - + 40 20 @@ -129,7 +129,7 @@ Panel Display Options - + AlignVCenter|AlignLeft @@ -228,7 +228,7 @@ Expanding - + 294 16 @@ -256,7 +256,7 @@ false - + 252 0 @@ -284,7 +284,7 @@ - tqlayout1 + layout1 @@ -318,7 +318,7 @@ Expanding - + 170 20 diff --git a/kweather/reportview.cpp b/kweather/reportview.cpp index f25df19..39b5536 100644 --- a/kweather/reportview.cpp +++ b/kweather/reportview.cpp @@ -72,7 +72,7 @@ void reportView::render(){ TQString textColor = KGlobalSettings::textColor().name(); TQString baseColor = KGlobalSettings::baseColor().name(); - TQColorGroup cg = tqpalette().active(); + TQColorGroup cg = palette().active(); TQString bgColor = cg.background().name(); TQString hlColor = cg.highlight().name(); TQString hlTextColor = cg.highlightedText().name(); @@ -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/serviceconfigdata.ui b/kweather/serviceconfigdata.ui index befdca2..71f6099 100644 --- a/kweather/serviceconfigdata.ui +++ b/kweather/serviceconfigdata.ui @@ -60,7 +60,7 @@ Expanding - + 20 86 @@ -121,7 +121,7 @@ Expanding - + 20 85 @@ -169,7 +169,7 @@ - tqlayout1 + layout1 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/sidebarwidgetbase.ui b/kweather/sidebarwidgetbase.ui index 46eb042..6f1f50c 100644 --- a/kweather/sidebarwidgetbase.ui +++ b/kweather/sidebarwidgetbase.ui @@ -61,7 +61,7 @@ Expanding - + 20 20 diff --git a/kweather/sun.h b/kweather/sun.h index f56b513..fd407d7 100644 --- a/kweather/sun.h +++ b/kweather/sun.h @@ -37,7 +37,7 @@ class Sun */ Sun( const TQString &latitude, const TQString &longitude, - TQDate date = TQDate::tqcurrentDate(), + TQDate date = TQDate::currentDate(), const int localUTCOffset = KRFCDate::localUTCOffset() ); TQTime computeRiseTime(); diff --git a/kweather/weatherbar.cpp b/kweather/weatherbar.cpp index c77333d..a3c5b05 100644 --- a/kweather/weatherbar.cpp +++ b/kweather/weatherbar.cpp @@ -25,7 +25,7 @@ #include #include -#include +#include #include #include #include diff --git a/kweather/weatherbar.h b/kweather/weatherbar.h index 0d00c13..d132d04 100644 --- a/kweather/weatherbar.h +++ b/kweather/weatherbar.h @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include class dockwidget; 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 40eab31..7daf2d7 100644 --- a/kweather/weatherlib.cpp +++ b/kweather/weatherlib.cpp @@ -18,7 +18,7 @@ email : geiseri@msoe.edu #include "config.h" #include #include -#include +#include #include #include #include @@ -65,7 +65,7 @@ WeatherLib::Data::Data() void WeatherLib::Data::clear() { - age = TQDateTime::tqcurrentDateTime(); + age = TQDateTime::currentDateTime(); downloading = false; updated = false; job = 0; @@ -135,7 +135,7 @@ void WeatherLib::slotCopyDone(KIO::Job* job) kdDebug( 12006 ) << "Parse: " << s << endl; MetarParser parser(m_StationDb, KGlobal::locale()->measureSystem()); d->wi = parser.processData(d->wi.reportLocation, s); - d->age = TQDateTime::tqcurrentDateTime().addSecs(1800); + d->age = TQDateTime::currentDateTime().addSecs(1800); emit fileUpdate(d->wi.reportLocation); d->updated = true; } @@ -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; @@ -322,7 +322,7 @@ void WeatherLib::update(const TQString &stationID) // Only grab new data if its more than 50 minutes old Data *d = findData(stationID); - TQDateTime timeout = TQDateTime::tqcurrentDateTime(); + TQDateTime timeout = TQDateTime::currentDateTime(); kdDebug (12006) << "Current Time: " << KGlobal::locale()->formatDateTime(timeout, false, false) << " Update at: " << KGlobal::locale()->formatDateTime(d->age, false, false) << endl; -- cgit v1.2.1