diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:05:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:05:40 -0600 |
commit | 1d4158dd755a445fd42f2db7db5abab8084175cd (patch) | |
tree | 71ca5f966ca25d2a47b66ae27f7bb06c34d190bf /lib/kofficeui/ttdetoolbarbutton.cpp | |
parent | 391e0b69f256bab8971430050c65f0e6e7eea9be (diff) | |
download | koffice-1d4158dd755a445fd42f2db7db5abab8084175cd.tar.gz koffice-1d4158dd755a445fd42f2db7db5abab8084175cd.zip |
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'lib/kofficeui/ttdetoolbarbutton.cpp')
-rw-r--r-- | lib/kofficeui/ttdetoolbarbutton.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/kofficeui/ttdetoolbarbutton.cpp b/lib/kofficeui/ttdetoolbarbutton.cpp index 51d82500..72956275 100644 --- a/lib/kofficeui/ttdetoolbarbutton.cpp +++ b/lib/kofficeui/ttdetoolbarbutton.cpp @@ -190,23 +190,23 @@ void TTDEToolBarButton::setIcon( const TQString& icon ) d->m_iconName = icon; int iconSize = 16; - setPixmap( BarIcon(icon, iconSize, KIcon::ActiveState, d->m_instance), false ); - setDisabledPixmap( BarIcon(icon, iconSize, KIcon::DisabledState, d->m_instance) ); - setDefaultPixmap( BarIcon(icon, iconSize, KIcon::DefaultState, d->m_instance) ); + setPixmap( BarIcon(icon, iconSize, TDEIcon::ActiveState, d->m_instance), false ); + setDisabledPixmap( BarIcon(icon, iconSize, TDEIcon::DisabledState, d->m_instance) ); + setDefaultPixmap( BarIcon(icon, iconSize, TDEIcon::DefaultState, d->m_instance) ); } void TTDEToolBarButton::setDisabledIcon( const TQString &icon ) { d->m_disabledIconName = icon; int iconSize = 16; - setDisabledPixmap( BarIcon(icon, iconSize, KIcon::DisabledState, d->m_instance) ); + setDisabledPixmap( BarIcon(icon, iconSize, TDEIcon::DisabledState, d->m_instance) ); } void TTDEToolBarButton::setDefaultIcon( const TQString &icon ) { d->m_defaultIconName = icon; int iconSize = 16; - setDefaultPixmap( BarIcon(icon, iconSize, KIcon::DefaultState, d->m_instance) ); + setDefaultPixmap( BarIcon(icon, iconSize, TDEIcon::DefaultState, d->m_instance) ); } TQPixmap TTDEToolBarButton::getActivePixmap() const @@ -417,8 +417,8 @@ void TTDEToolBarButton::makeDefaultPixmap() if (activePixmap.isNull()) return; - KIconEffect effect; - defaultPixmap = effect.apply(activePixmap, KIcon::Toolbar, KIcon::DefaultState); + TDEIconEffect effect; + defaultPixmap = effect.apply(activePixmap, TDEIcon::Toolbar, TDEIcon::DefaultState); } void TTDEToolBarButton::makeDisabledPixmap() @@ -426,8 +426,8 @@ void TTDEToolBarButton::makeDisabledPixmap() if (activePixmap.isNull()) return; - KIconEffect effect; - disabledPixmap = effect.apply(activePixmap, KIcon::Toolbar, KIcon::DisabledState); + TDEIconEffect effect; + disabledPixmap = effect.apply(activePixmap, TDEIcon::Toolbar, TDEIcon::DisabledState); } TQSize TTDEToolBarButton::sizeHint() const |