From dca4b260f029db8fbb9a33bfb2b0a2aa9a28edf1 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 4 Feb 2013 14:08:40 -0600 Subject: Rename KIcon to enhance compatibility with KDE4 --- src/common/gui/editlistbox.cpp | 4 ++-- src/common/gui/misc_gui.cpp | 4 ++-- src/common/gui/purl_gui.cpp | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/common/gui') diff --git a/src/common/gui/editlistbox.cpp b/src/common/gui/editlistbox.cpp index 8601399..432aacd 100644 --- a/src/common/gui/editlistbox.cpp +++ b/src/common/gui/editlistbox.cpp @@ -61,8 +61,8 @@ void EditListBox::init(uint nbColumns, TQWidget *view) TQHBoxLayout *hbox = new TQHBoxLayout(KDialog::spacingHint()); grid->addMultiCellLayout(hbox, row,row, 0,1); if (m_lineEdit) { - KIconLoader loader; - TQIconSet iconset = loader.loadIcon("locationbar_erase", KIcon::Toolbar); + TDEIconLoader loader; + TQIconSet iconset = loader.loadIcon("locationbar_erase", TDEIcon::Toolbar); KPushButton *button = new KPushButton(iconset, TQString(), this); connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(clearEdit())); hbox->addWidget(button); diff --git a/src/common/gui/misc_gui.cpp b/src/common/gui/misc_gui.cpp index 607156e..9808492 100644 --- a/src/common/gui/misc_gui.cpp +++ b/src/common/gui/misc_gui.cpp @@ -145,8 +145,8 @@ void PopupButton::appendAction(const TQString &label, const TQString &icon, int PopupButton::appendItem(const TQString &label, const TQString &icon, int id) { - KIconLoader loader; - TQPixmap pixmap = loader.loadIcon(icon, KIcon::Small); + TDEIconLoader loader; + TQPixmap pixmap = loader.loadIcon(icon, TDEIcon::Small); return appendItem(label, pixmap, id); } diff --git a/src/common/gui/purl_gui.cpp b/src/common/gui/purl_gui.cpp index 614ef76..3f5a742 100644 --- a/src/common/gui/purl_gui.cpp +++ b/src/common/gui/purl_gui.cpp @@ -61,7 +61,7 @@ PURL::Directory PURL::getExistingDirectory(const TQString &startDir, TQWidget *w TQPixmap PURL::icon(FileType type) { if (type.data().xpm_icon) return TQPixmap(type.data().xpm_icon); - if ( hasMimetype(type) ) return KMimeType::mimeType(type.data().mimetype)->pixmap(KIcon::Small); + if ( hasMimetype(type) ) return KMimeType::mimeType(type.data().mimetype)->pixmap(TDEIcon::Small); return TQPixmap(); } @@ -105,8 +105,8 @@ void PURL::BaseWidget::init() _edit = new KLineEdit(this); connect(_edit, TQT_SIGNAL(textChanged(const TQString &)), TQT_SIGNAL(changed())); top->addWidget(_edit); - KIconLoader loader; - TQIconSet iconset = loader.loadIcon("fileopen", KIcon::Toolbar); + TDEIconLoader loader; + TQIconSet iconset = loader.loadIcon("fileopen", TDEIcon::Toolbar); TQPushButton *button = new KPushButton(iconset, TQString(), this); connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(buttonClicked())); top->addWidget(button); -- cgit v1.2.1