From f78eb03afb8c9a380985d26286afc40b4c89b292 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:15:35 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- parts/openwith/openwithpart.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'parts/openwith') diff --git a/parts/openwith/openwithpart.cpp b/parts/openwith/openwithpart.cpp index 321b1db7..b8f5e552 100644 --- a/parts/openwith/openwithpart.cpp +++ b/parts/openwith/openwithpart.cpp @@ -47,7 +47,7 @@ void OpenWithPart::fillContextMenu(TQPopupMenu *popup, const Context *context) popup->insertItem( i18n("Open as UTF-8"), this, TQT_SLOT(openAsUtf8()) ); - KPopupMenu * openAsPopup = new KPopupMenu( popup ); + TDEPopupMenu * openAsPopup = new TDEPopupMenu( popup ); int id = popup->insertItem( i18n("Open As"), openAsPopup ); popup->setWhatsThis(id, i18n("Open As

Lists all encodings that can be used to open the selected file.")); @@ -63,7 +63,7 @@ void OpenWithPart::fillContextMenu(TQPopupMenu *popup, const Context *context) i++; } - KPopupMenu * openWithPopup = new KPopupMenu( popup ); + TDEPopupMenu * openWithPopup = new TDEPopupMenu( popup ); // hmmm.. what to do here? open every different mimetype seperately? Just go with the first for now.. TQString mimeType = KMimeType::findByURL(m_urls.first(), 0, true, true)->name(); @@ -73,7 +73,7 @@ void OpenWithPart::fillContextMenu(TQPopupMenu *popup, const Context *context) TDETrader::OfferList::Iterator it; for (it = offers.begin(); it != offers.end(); ++it) { - KAction *action = new KAction((*it)->name(), (*it)->icon(), 0, 0, TQFile::encodeName( (*it)->desktopEntryPath() ).data()); + TDEAction *action = new TDEAction((*it)->name(), (*it)->icon(), 0, 0, TQFile::encodeName( (*it)->desktopEntryPath() ).data()); connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(openWithService())); action->plug( openWithPopup ); } -- cgit v1.2.1