summaryrefslogtreecommitdiffstats
path: root/tdeui/tdetoolbar.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:16:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:16:51 -0600
commitf2bfcad7ffdd09911f282afe2a2051b3708601c9 (patch)
treece4bebc206b6f9753745218e6a4c4368df624c16 /tdeui/tdetoolbar.cpp
parenta14eaa044240517f1f3d7eb5dacbff96fd447ada (diff)
downloadtdelibs-f2bfcad7ffdd09911f282afe2a2051b3708601c9.tar.gz
tdelibs-f2bfcad7ffdd09911f282afe2a2051b3708601c9.zip
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'tdeui/tdetoolbar.cpp')
-rw-r--r--tdeui/tdetoolbar.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tdeui/tdetoolbar.cpp b/tdeui/tdetoolbar.cpp
index c6049e658..02173e41b 100644
--- a/tdeui/tdetoolbar.cpp
+++ b/tdeui/tdetoolbar.cpp
@@ -913,9 +913,9 @@ int TDEToolBar::iconSize() const
int TDEToolBar::iconSizeDefault() const
{
if (!::qstrcmp(name(), "mainToolBar"))
- return TDEGlobal::iconLoader()->currentSize(KIcon::MainToolbar);
+ return TDEGlobal::iconLoader()->currentSize(TDEIcon::MainToolbar);
- return TDEGlobal::iconLoader()->currentSize(KIcon::Toolbar);
+ return TDEGlobal::iconLoader()->currentSize(TDEIcon::Toolbar);
}
void TDEToolBar::setEnableContextMenu(bool enable )
@@ -1452,9 +1452,9 @@ void TDEToolBar::resizeEvent( TQResizeEvent *e )
void TDEToolBar::slotIconChanged(int group)
{
- if ((group != KIcon::Toolbar) && (group != KIcon::MainToolbar))
+ if ((group != TDEIcon::Toolbar) && (group != TDEIcon::MainToolbar))
return;
- if ((group == KIcon::MainToolbar) != !::qstrcmp(name(), "mainToolBar"))
+ if ((group == TDEIcon::MainToolbar) != !::qstrcmp(name(), "mainToolBar"))
return;
doModeChange();
@@ -2062,14 +2062,14 @@ TDEPopupMenu *TDEToolBar::contextMenu()
TDEPopupMenu *size = new TDEPopupMenu( context, "size" );
size->insertItem( i18n("Default"), CONTEXT_ICONSIZES );
// Query the current theme for available sizes
- KIconTheme *theme = TDEGlobal::instance()->iconLoader()->theme();
+ TDEIconTheme *theme = TDEGlobal::instance()->iconLoader()->theme();
TQValueList<int> avSizes;
if (theme)
{
if (!::qstrcmp(name(), "mainToolBar"))
- avSizes = theme->querySizes( KIcon::MainToolbar);
+ avSizes = theme->querySizes( TDEIcon::MainToolbar);
else
- avSizes = theme->querySizes( KIcon::Toolbar);
+ avSizes = theme->querySizes( TDEIcon::Toolbar);
}
d->iconSizes = avSizes;