diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:15:35 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:15:35 -0600 |
commit | f78eb03afb8c9a380985d26286afc40b4c89b292 (patch) | |
tree | 3c087e2f119e645c902958c3bc3c802abf078ad0 /parts/openwith/openwithpart.cpp | |
parent | da1941ccadffe5ae70ee111c53f0ec2b3d990869 (diff) | |
download | tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.tar.gz tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'parts/openwith/openwithpart.cpp')
-rw-r--r-- | parts/openwith/openwithpart.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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("<b>Open As</b><p>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 ); } |