|
|
|
@ -38,17 +38,17 @@ bool WeatherIconPrivate::usingIconTheme()
|
|
|
|
|
|
|
|
|
|
TQPair<TQString,TQString> WeatherIconPrivate::findIcon( TQStringList fallback )
|
|
|
|
|
{
|
|
|
|
|
kdDebug() << "[WeatherIcon::findIcon] use icon theme? " << m_useIconTheme << endl;
|
|
|
|
|
kdDebug(12006) << "[findIcon] Use icon theme? " << m_useIconTheme << endl;
|
|
|
|
|
if( m_useIconTheme )
|
|
|
|
|
{
|
|
|
|
|
// Check in theme
|
|
|
|
|
for ( TQStringList::Iterator icon = fallback.begin(); icon != fallback.end(); ++icon )
|
|
|
|
|
{
|
|
|
|
|
kdDebug() << "[WeatherIcon::findIcon] Searching for `" << *icon << "` in theme" << endl;
|
|
|
|
|
kdDebug(12006) << "[findIcon] Searching for `" << *icon << "` in theme" << endl;
|
|
|
|
|
TQString iPath = iconPath(*icon, true);
|
|
|
|
|
if( !( iPath.isNull() ) )
|
|
|
|
|
{
|
|
|
|
|
kdDebug() << "[WeatherIcon::findIcon] FOUND `" << *icon << "` in theme: " << iPath << endl;
|
|
|
|
|
kdDebug(12006) << "[findIcon] Found `" << *icon << "` in theme: " << iPath << endl;
|
|
|
|
|
return qMakePair(*icon, iPath);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -57,11 +57,11 @@ TQPair<TQString,TQString> WeatherIconPrivate::findIcon( TQStringList fallback )
|
|
|
|
|
// Check in kweather fallback
|
|
|
|
|
for ( TQStringList::Iterator icon = fallback.begin(); icon != fallback.end(); ++icon )
|
|
|
|
|
{
|
|
|
|
|
kdDebug() << "[WeatherIcon::findIcon] Searching for `" << *icon << "` in kweather icons" << endl;
|
|
|
|
|
kdDebug(12006) << "[findIcon] Searching for `" << *icon << "` in kweather icons" << endl;
|
|
|
|
|
TQString iPath = iconPath(*icon, false);
|
|
|
|
|
if( !( iPath.isNull() ) )
|
|
|
|
|
{
|
|
|
|
|
kdDebug() << "[WeatherIcon::findIcon] FOUND `" << *icon << "` in kweather icons: " << iPath << endl;
|
|
|
|
|
kdDebug(12006) << "[findIcon] Found `" << *icon << "` in kweather icons: " << iPath << endl;
|
|
|
|
|
return qMakePair(*icon, iPath);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|