diff options
Diffstat (limited to 'kexi/widget/pixmapcollection.cpp')
-rw-r--r-- | kexi/widget/pixmapcollection.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kexi/widget/pixmapcollection.cpp b/kexi/widget/pixmapcollection.cpp index ef94b5d2..6adfc94a 100644 --- a/kexi/widget/pixmapcollection.cpp +++ b/kexi/widget/pixmapcollection.cpp @@ -99,7 +99,7 @@ PixmapCollection::getPixmap(const TQString &name) if(m_pixmaps[name].second != 0) { - return kapp->iconLoader()->loadIcon(m_pixmaps[name].first, KIcon::NoGroup, m_pixmaps[name].second); + return kapp->iconLoader()->loadIcon(m_pixmaps[name].first, TDEIcon::NoGroup, m_pixmaps[name].second); } else return TQPixmap(m_pixmaps[name].first); @@ -180,9 +180,9 @@ LoadIconDialog::LoadIconDialog(TQWidget *parent) // Icon chooser button - m_button = new KIconButton(frame); + m_button = new TDEIconButton(frame); m_button->setIcon("kexi"); - m_button->setIconSize(KIcon::SizeMedium); + m_button->setIconSize(TDEIcon::SizeMedium); l->addMultiCellWidget(m_button, 0, 1, 2, 2); connect(m_button, TQT_SIGNAL(iconChanged(TQString)), this, TQT_SLOT(updateIconName(TQString))); connect(m_nameInput, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(setIcon(const TQString &))); @@ -203,15 +203,15 @@ LoadIconDialog::setIcon(const TQString &icon) void LoadIconDialog::changeIconSize(int index) { - int size = KIcon::SizeMedium; + int size = TDEIcon::SizeMedium; switch(index) { - case 0: size = KIcon::SizeSmall; break; - //case 1: size = KIcon::SizeSmallMedium; break; - case 1: size = KIcon::SizeMedium; break; - case 2: size = KIcon::SizeLarge; break; + case 0: size = TDEIcon::SizeSmall; break; + //case 1: size = TDEIcon::SizeSmallMedium; break; + case 1: size = TDEIcon::SizeMedium; break; + case 2: size = TDEIcon::SizeLarge; break; #if !defined(TQ_WS_WIN) && KDE_IS_VERSION(3,1,9) - case 3: size = KIcon::SizeHuge; break; + case 3: size = TDEIcon::SizeHuge; break; #endif default:; } @@ -264,11 +264,11 @@ PixmapCollectionEditor::PixmapCollectionEditor(PixmapCollection *collection, TQW vlayout->addStretch(); // Setup the iconView - m_iconView = new KIconView(frame, "pixcollection_iconView"); + m_iconView = new TDEIconView(frame, "pixcollection_iconView"); m_iconView->resize(100,100); m_iconView->setArrangement(TQIconView::LeftToRight); m_iconView->setAutoArrange(true); - m_iconView->setMode(KIconView::Select); + m_iconView->setMode(TDEIconView::Select); l->addWidget(m_iconView); connect(m_iconView, TQT_SIGNAL(contextMenuRequested(TQIconViewItem*, const TQPoint&)), this, TQT_SLOT(displayMenu(TQIconViewItem*, const TQPoint&))); connect(m_iconView, TQT_SIGNAL(itemRenamed(TQIconViewItem*, const TQString &)), this, TQT_SLOT(renameCollectionItem(TQIconViewItem*, const TQString&))); @@ -379,11 +379,11 @@ PixmapCollectionChooser::PixmapCollectionChooser(PixmapCollection *collection, c m_collection = collection; setInitialSize(TQSize(400, 200), true); - m_iconView = new KIconView(this, "pixchooser_iconView"); + m_iconView = new TDEIconView(this, "pixchooser_iconView"); setMainWidget(m_iconView); m_iconView->setArrangement(TQIconView::LeftToRight); m_iconView->setAutoArrange(true); - m_iconView->setMode(KIconView::Select); + m_iconView->setMode(TDEIconView::Select); PixmapMap::ConstIterator it; PixmapMap::ConstIterator endIt = collection->m_pixmaps.constEnd(); |