Rename KIcon to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 6630d485e9
commit 8e026986e2

@ -85,7 +85,7 @@ void FifteenApplet::about()
}
KAboutApplication dialog(_aboutData);
dialog.setProgramLogo( TDEGlobal::instance()->iconLoader()->iconPath( "fifteenpieces", -KIcon::SizeLarge ) );
dialog.setProgramLogo( TDEGlobal::instance()->iconLoader()->iconPath( "fifteenpieces", -TDEIcon::SizeLarge ) );
dialog.exec();
}

@ -229,8 +229,8 @@ TQImage MoonWidget::loadMoon(int index)
if (path.isNull())
kdFatal() << "cound't find " << filename << ". Exiting.\n";
TQImage image(path);
KIconEffect iconeffect;
image=iconeffect.apply(image, KIcon::Panel, KIcon::DefaultState);
TDEIconEffect iconeffect;
image=iconeffect.apply(image, TDEIcon::Panel, TDEIcon::DefaultState);
return image;
}

@ -144,7 +144,7 @@ void kweather::about(){
I18N_NOOP( "Improvements and more code cleanups" ), "jratke@comcast.net" );
KAboutApplication about(&aboutData, this, 0);
about.setProgramLogo( TDEGlobal::instance()->iconLoader()->iconPath( "kweather", -KIcon::SizeLarge ) );
about.setProgramLogo( TDEGlobal::instance()->iconLoader()->iconPath( "kweather", -TDEIcon::SizeLarge ) );
about.exec();
}

@ -100,10 +100,10 @@ void WeatherButton::generateIcons()
TQImage image = pixmap()->convertToImage();
image = image.smoothScale( pixmapSize(), TQ_ScaleMin );
KIconEffect effect;
TDEIconEffect effect;
m_normalIcon = effect.apply( image, KIcon::Panel, KIcon::DefaultState );
m_activeIcon = effect.apply( image, KIcon::Panel, KIcon::ActiveState );
m_normalIcon = effect.apply( image, TDEIcon::Panel, TDEIcon::DefaultState );
m_activeIcon = effect.apply( image, TDEIcon::Panel, TDEIcon::ActiveState );
}
void WeatherButton::slotSettingsChanged( int category )
@ -120,7 +120,7 @@ void WeatherButton::slotSettingsChanged( int category )
void WeatherButton::slotIconChanged( int group )
{
if ( group != KIcon::Panel )
if ( group != TDEIcon::Panel )
return;
generateIcons();

Loading…
Cancel
Save