diff options
Diffstat (limited to 'src/iconsviewsettingspage.cpp')
-rw-r--r-- | src/iconsviewsettingspage.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/iconsviewsettingspage.cpp b/src/iconsviewsettingspage.cpp index 7c453cf..bbe0522 100644 --- a/src/iconsviewsettingspage.cpp +++ b/src/iconsviewsettingspage.cpp @@ -83,8 +83,8 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, new TQLabel(i18n("Large"), iconSizeVBox); m_iconSizeViewer = new PixmapViewer(iconSizeGroup); - m_iconSizeViewer->setMinimumWidth(KIcon::SizeEnormous); - m_iconSizeViewer->setFixedHeight(KIcon::SizeEnormous); + m_iconSizeViewer->setMinimumWidth(TDEIcon::SizeEnormous); + m_iconSizeViewer->setFixedHeight(TDEIcon::SizeEnormous); m_iconSizeViewer->setEraseColor(iconBackgroundColor); slotIconSizeChanged(m_iconSizeSlider->value()); @@ -105,8 +105,8 @@ IconsViewSettingsPage::IconsViewSettingsPage(DolphinIconsView::LayoutMode mode, new TQLabel(i18n("Large"), previewSizeVBox); m_previewSizeViewer = new PixmapViewer(previewSizeGroup); - m_previewSizeViewer->setMinimumWidth(KIcon::SizeEnormous); - m_previewSizeViewer->setFixedHeight(KIcon::SizeEnormous); + m_previewSizeViewer->setMinimumWidth(TDEIcon::SizeEnormous); + m_previewSizeViewer->setFixedHeight(TDEIcon::SizeEnormous); m_previewSizeViewer->setEraseColor(iconBackgroundColor); slotPreviewSizeChanged(m_previewSizeSlider->value()); @@ -199,8 +199,8 @@ void IconsViewSettingsPage::applySettings() void IconsViewSettingsPage::slotIconSizeChanged(int value) { - KIconLoader iconLoader; - m_iconSizeViewer->setPixmap(iconLoader.loadIcon("folder", KIcon::Desktop, iconSize(value))); + TDEIconLoader iconLoader; + m_iconSizeViewer->setPixmap(iconLoader.loadIcon("folder", TDEIcon::Desktop, iconSize(value))); if (m_previewSizeSlider != 0) { int previewSizeValue = m_previewSizeSlider->value(); @@ -214,25 +214,25 @@ void IconsViewSettingsPage::slotIconSizeChanged(int value) void IconsViewSettingsPage::slotPreviewSizeChanged(int value) { - KIconLoader iconLoader; + TDEIconLoader iconLoader; const int iconSizeValue = m_iconSizeSlider->value(); if (value < iconSizeValue) { // assure that the preview size is never smaller than the icon size value = iconSizeValue; } - m_previewSizeViewer->setPixmap(iconLoader.loadIcon("preview", KIcon::Desktop, iconSize(value))); + m_previewSizeViewer->setPixmap(iconLoader.loadIcon("preview", TDEIcon::Desktop, iconSize(value))); } int IconsViewSettingsPage::iconSize(int sliderValue) const { - int size = KIcon::SizeMedium; + int size = TDEIcon::SizeMedium; switch (sliderValue) { - case 0: size = KIcon::SizeSmall; break; - case 1: size = KIcon::SizeSmallMedium; break; - case 2: size = KIcon::SizeMedium; break; - case 3: size = KIcon::SizeLarge; break; - case 4: size = KIcon::SizeHuge; break; - case 5: size = KIcon::SizeEnormous; break; + case 0: size = TDEIcon::SizeSmall; break; + case 1: size = TDEIcon::SizeSmallMedium; break; + case 2: size = TDEIcon::SizeMedium; break; + case 3: size = TDEIcon::SizeLarge; break; + case 4: size = TDEIcon::SizeHuge; break; + case 5: size = TDEIcon::SizeEnormous; break; } return size; } @@ -241,12 +241,12 @@ int IconsViewSettingsPage::sliderValue(int iconSize) const { int value = 0; switch (iconSize) { - case KIcon::SizeSmall: value = 0; break; - case KIcon::SizeSmallMedium: value = 1; break; - case KIcon::SizeMedium: value = 2; break; - case KIcon::SizeLarge: value = 3; break; - case KIcon::SizeHuge: value = 4; break; - case KIcon::SizeEnormous: value = 5; break; + case TDEIcon::SizeSmall: value = 0; break; + case TDEIcon::SizeSmallMedium: value = 1; break; + case TDEIcon::SizeMedium: value = 2; break; + case TDEIcon::SizeLarge: value = 3; break; + case TDEIcon::SizeHuge: value = 4; break; + case TDEIcon::SizeEnormous: value = 5; break; default: break; } return value; |