|
|
|
@ -25,6 +25,7 @@
|
|
|
|
|
#include <tdeglobal.h>
|
|
|
|
|
#include <tdelocale.h>
|
|
|
|
|
#include <kstandarddirs.h>
|
|
|
|
|
#include <kiconloader.h>
|
|
|
|
|
|
|
|
|
|
#include "weatherlib.h"
|
|
|
|
|
#include "weatherservice.h"
|
|
|
|
@ -148,8 +149,14 @@ TQString WeatherService::currentIconString(const TQString &stationID)
|
|
|
|
|
|
|
|
|
|
TQString WeatherService::iconFileName(const TQString &stationID)
|
|
|
|
|
{
|
|
|
|
|
TQString icon = m_weatherLib->iconName(stationID);
|
|
|
|
|
icon = locate( "data", "kweather/" + icon + ".png" );
|
|
|
|
|
TQString _name = m_weatherLib->iconName(stationID);
|
|
|
|
|
TQString icon = kapp->iconLoader()->iconPath(_name, TDEIcon::Desktop);
|
|
|
|
|
kdDebug(12006) << "icon: " << icon << endl;
|
|
|
|
|
if( icon.isNull() )
|
|
|
|
|
{
|
|
|
|
|
kdDebug(12006) << "fallback!" << endl;
|
|
|
|
|
icon = locate( "data", "kweather/" + _name + ".png" );
|
|
|
|
|
}
|
|
|
|
|
return icon;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|