summaryrefslogtreecommitdiffstats
path: root/src/dolphiniconsview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-04 14:01:06 -0600
committerTimothy Pearson <[email protected]>2013-02-04 14:01:06 -0600
commit8773bce422c47cf1bd4049d82952c93e7bdb029d (patch)
treebb559831f6514727d944233fb41da9a2e8c6f00d /src/dolphiniconsview.cpp
parent32932d14f9b794773c7eb4deb33777248065a37c (diff)
downloaddolphin-8773bce422c47cf1bd4049d82952c93e7bdb029d.tar.gz
dolphin-8773bce422c47cf1bd4049d82952c93e7bdb029d.zip
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'src/dolphiniconsview.cpp')
-rw-r--r--src/dolphiniconsview.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp
index 6040b7c..112529c 100644
--- a/src/dolphiniconsview.cpp
+++ b/src/dolphiniconsview.cpp
@@ -45,7 +45,7 @@ DolphinIconsView::DolphinIconsView(DolphinView* parent, LayoutMode layoutMode) :
m_dolphinView(parent)
{
setAcceptDrops(true);
- setMode(KIconView::Execute);
+ setMode(TDEIconView::Execute);
setSelectionMode(KFile::Extended);
Dolphin& dolphin = Dolphin::mainWin();
@@ -207,13 +207,13 @@ bool DolphinIconsView::isZoomInPossible() const
{
DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_layoutMode);
const int size = (m_layoutMode == Icons) ? settings->iconSize() : settings->previewSize();
- return size < KIcon::SizeEnormous;
+ return size < TDEIcon::SizeEnormous;
}
bool DolphinIconsView::isZoomOutPossible() const
{
DolphinIconsViewSettings* settings = DolphinSettings::instance().iconsView(m_layoutMode);
- return settings->iconSize() > KIcon::SizeSmall;
+ return settings->iconSize() > TDEIcon::SizeSmall;
}
void DolphinIconsView::arrangeItemsInGrid( bool updated )
@@ -473,11 +473,11 @@ int DolphinIconsView::increasedIconSize(int size) const
{
int incSize = 0;
switch (size) {
- case KIcon::SizeSmall: incSize = KIcon::SizeSmallMedium; break;
- case KIcon::SizeSmallMedium: incSize = KIcon::SizeMedium; break;
- case KIcon::SizeMedium: incSize = KIcon::SizeLarge; break;
- case KIcon::SizeLarge: incSize = KIcon::SizeHuge; break;
- case KIcon::SizeHuge: incSize = KIcon::SizeEnormous; break;
+ case TDEIcon::SizeSmall: incSize = TDEIcon::SizeSmallMedium; break;
+ case TDEIcon::SizeSmallMedium: incSize = TDEIcon::SizeMedium; break;
+ case TDEIcon::SizeMedium: incSize = TDEIcon::SizeLarge; break;
+ case TDEIcon::SizeLarge: incSize = TDEIcon::SizeHuge; break;
+ case TDEIcon::SizeHuge: incSize = TDEIcon::SizeEnormous; break;
default: assert(false); break;
}
return incSize;
@@ -487,11 +487,11 @@ int DolphinIconsView::decreasedIconSize(int size) const
{
int decSize = 0;
switch (size) {
- case KIcon::SizeSmallMedium: decSize = KIcon::SizeSmall; break;
- case KIcon::SizeMedium: decSize = KIcon::SizeSmallMedium; break;
- case KIcon::SizeLarge: decSize = KIcon::SizeMedium; break;
- case KIcon::SizeHuge: decSize = KIcon::SizeLarge; break;
- case KIcon::SizeEnormous: decSize = KIcon::SizeHuge; break;
+ case TDEIcon::SizeSmallMedium: decSize = TDEIcon::SizeSmall; break;
+ case TDEIcon::SizeMedium: decSize = TDEIcon::SizeSmallMedium; break;
+ case TDEIcon::SizeLarge: decSize = TDEIcon::SizeMedium; break;
+ case TDEIcon::SizeHuge: decSize = TDEIcon::SizeLarge; break;
+ case TDEIcon::SizeEnormous: decSize = TDEIcon::SizeHuge; break;
default: assert(false); break;
}
return decSize;