summaryrefslogtreecommitdiffstats
path: root/parts/openwith/openwithpart.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /parts/openwith/openwithpart.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/openwith/openwithpart.cpp')
-rw-r--r--parts/openwith/openwithpart.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/parts/openwith/openwithpart.cpp b/parts/openwith/openwithpart.cpp
index 2f45f867..bce4df7e 100644
--- a/parts/openwith/openwithpart.cpp
+++ b/parts/openwith/openwithpart.cpp
@@ -21,8 +21,8 @@ typedef KDevGenericFactory<OpenWithPart> OpenWithFactory;
static const KDevPluginInfo data("kdevopenwith");
K_EXPORT_COMPONENT_FACTORY(libkdevopenwith, OpenWithFactory(data))
-OpenWithPart::OpenWithPart(TQObject *parent, const char *name, const TQStringList &)
- : KDevPlugin(&data, parent, name ? name : "OpenWithPart")
+OpenWithPart::OpenWithPart(TQObject *tqparent, const char *name, const TQStringList &)
+ : KDevPlugin(&data, tqparent, name ? name : "OpenWithPart")
{
setInstance( OpenWithFactory::instance() );
@@ -50,7 +50,7 @@ void OpenWithPart::fillContextMenu(TQPopupMenu *popup, const Context *context)
KPopupMenu * openAsPopup = new KPopupMenu( 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."));
+ popup->tqsetWhatsThis(id, i18n("<b>Open As</b><p>Lists all encodings that can be used to open the selected file."));
TQStringList encodings = KGlobal::charsets()->descriptiveEncodingNames();
@@ -80,19 +80,19 @@ void OpenWithPart::fillContextMenu(TQPopupMenu *popup, const Context *context)
}
id = popup->insertItem( i18n("Open With"), openWithPopup );
- popup->setWhatsThis(id, i18n("<b>Open With</b><p>Lists all applications that can be used to open the selected file."));
+ popup->tqsetWhatsThis(id, i18n("<b>Open With</b><p>Lists all applications that can be used to open the selected file."));
openWithPopup->insertSeparator();
// make sure the generic "Open with ..." entry gets appended to the submenu
id = openWithPopup->insertItem(i18n("Open With..."), this, TQT_SLOT(openWithDialog()));
- openWithPopup->setWhatsThis(id, i18n("<b>Open With...</b><p>Provides a dialog to choose the application to open the selected file."));
+ openWithPopup->tqsetWhatsThis(id, i18n("<b>Open With...</b><p>Provides a dialog to choose the application to open the selected file."));
}
void OpenWithPart::openWithService()
{
- KService::Ptr ptr = KService::serviceByDesktopPath(sender()->name());
+ KService::Ptr ptr = KService::serviceByDesktopPath(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name());
if (ptr)
{
KRun::run(*ptr, m_urls);