diff options
Diffstat (limited to 'src/variouswidgets.cpp')
-rw-r--r-- | src/variouswidgets.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/variouswidgets.cpp b/src/variouswidgets.cpp index b1a4d49..c09475e 100644 --- a/src/variouswidgets.cpp +++ b/src/variouswidgets.cpp @@ -176,10 +176,10 @@ void HelpLabel::keyPressEvent(TQKeyEvent *event) /** class IconSizeDialog: */ -class UndraggableKIconView : public KIconView +class UndraggableTDEIconView : public TDEIconView { public: - UndraggableKIconView(TQWidget * parent = 0, const char * name = 0, WFlags f = 0) : KIconView(parent, name, f) {} + UndraggableTDEIconView(TQWidget * parent = 0, const char * name = 0, WFlags f = 0) : TDEIconView(parent, name, f) {} TQDragObject* dragObject() { return 0; } }; @@ -193,15 +193,15 @@ IconSizeDialog::IconSizeDialog(const TQString &caption, const TQString &message, TQLabel *label = new TQLabel(message, page); topLayout->addWidget(label); - KIconView *iconView = new UndraggableKIconView(page); + TDEIconView *iconView = new UndraggableTDEIconView(page); iconView->setItemsMovable(false); - iconView->setSelectionMode(KIconView::Single); - m_size16 = new KIconViewItem(iconView, 0, i18n("16 by 16 pixels"), DesktopIcon(icon, 16)); - m_size22 = new KIconViewItem(iconView, m_size16, i18n("22 by 22 pixels"), DesktopIcon(icon, 22)); - m_size32 = new KIconViewItem(iconView, m_size22, i18n("32 by 32 pixels"), DesktopIcon(icon, 32)); - m_size48 = new KIconViewItem(iconView, m_size32, i18n("48 by 48 pixels"), DesktopIcon(icon, 48)); - m_size64 = new KIconViewItem(iconView, m_size48, i18n("64 by 64 pixels"), DesktopIcon(icon, 64)); - m_size128 = new KIconViewItem(iconView, m_size64, i18n("128 by 128 pixels"), DesktopIcon(icon, 128)); + iconView->setSelectionMode(TDEIconView::Single); + m_size16 = new TDEIconViewItem(iconView, 0, i18n("16 by 16 pixels"), DesktopIcon(icon, 16)); + m_size22 = new TDEIconViewItem(iconView, m_size16, i18n("22 by 22 pixels"), DesktopIcon(icon, 22)); + m_size32 = new TDEIconViewItem(iconView, m_size22, i18n("32 by 32 pixels"), DesktopIcon(icon, 32)); + m_size48 = new TDEIconViewItem(iconView, m_size32, i18n("48 by 48 pixels"), DesktopIcon(icon, 48)); + m_size64 = new TDEIconViewItem(iconView, m_size48, i18n("64 by 64 pixels"), DesktopIcon(icon, 64)); + m_size128 = new TDEIconViewItem(iconView, m_size64, i18n("128 by 128 pixels"), DesktopIcon(icon, 128)); iconView->setMinimumWidth(m_size16->width() + m_size22->width() + m_size32->width() + m_size48->width() + m_size64->width() + m_size128->width() + (6+2) * iconView->spacing() + 20); iconView->setMinimumHeight(m_size128->height() + 2 * iconView->spacing() + 20); |