From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../kpartsdesignerplugin/kpartsdesignerplugin.cpp | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'libkdepim/kpartsdesignerplugin/kpartsdesignerplugin.cpp') diff --git a/libkdepim/kpartsdesignerplugin/kpartsdesignerplugin.cpp b/libkdepim/kpartsdesignerplugin/kpartsdesignerplugin.cpp index 922e5126..b25e5035 100644 --- a/libkdepim/kpartsdesignerplugin/kpartsdesignerplugin.cpp +++ b/libkdepim/kpartsdesignerplugin/kpartsdesignerplugin.cpp @@ -47,8 +47,8 @@ void KPartsGenericPart::load() if ( m_part ) { delete m_part; } - // "this" is both the parent widget and the parent object - m_part = KParts::ComponentFactory::createPartInstanceFromQuery( mimetype, TQString::null, this, 0, this, 0 ); + // "this" is both the tqparent widget and the tqparent object + m_part = KParts::ComponentFactory::createPartInstanceFromQuery( mimetype, TQString(), this, 0, this, 0 ); if ( m_part ) { m_part->openURL( m_url ); m_part->widget()->show(); @@ -63,16 +63,16 @@ TQStringList KPartsWidgetPlugin::keys() const { return TQStringList() << mykey; } -TQWidget * KPartsWidgetPlugin::create( const TQString & key, TQWidget * parent, const char * name ) { +TQWidget * KPartsWidgetPlugin::create( const TQString & key, TQWidget * tqparent, const char * name ) { if ( key == mykey ) - return new KPartsGenericPart( parent, name ); + return new KPartsGenericPart( tqparent, name ); return 0; } TQString KPartsWidgetPlugin::group( const TQString & key ) const { if ( key == mykey ) return "Display (KDE)"; - return TQString::null; + return TQString(); } #if 0 @@ -84,19 +84,19 @@ TQIconSet KPartsWidgetPlugin::iconSet( const TQString & key ) const { TQString KPartsWidgetPlugin::includeFile( const TQString & key ) const { if ( key == mykey ) return "partplugin.h"; - return TQString::null; + return TQString(); } TQString KPartsWidgetPlugin::toolTip( const TQString & key ) const { if ( key == mykey ) return "Generic KParts viewer"; - return TQString::null; + return TQString(); } TQString KPartsWidgetPlugin::whatsThis( const TQString & key ) const { if ( key == mykey ) return "A widget to embed any KParts viewer, given a url and optionally a mimetype"; - return TQString::null; + return TQString(); } bool KPartsWidgetPlugin::isContainer( const TQString & /*key*/ ) const { @@ -104,14 +104,14 @@ bool KPartsWidgetPlugin::isContainer( const TQString & /*key*/ ) const { } /// Duplicated from kdelibs/kdecore/kdemacros.h.in for those with kdelibs < 3.4 -#ifndef KDE_Q_EXPORT_PLUGIN -#define KDE_Q_EXPORT_PLUGIN(PLUGIN) \ - Q_EXTERN_C KDE_EXPORT const char* qt_ucm_query_verification_data(); \ - Q_EXTERN_C KDE_EXPORT QUnknownInterface* ucm_instantiate(); \ - Q_EXPORT_PLUGIN(PLUGIN) +#ifndef KDE_TQ_EXPORT_PLUGIN +#define KDE_TQ_EXPORT_PLUGIN(PLUGIN) \ + TQ_EXTERN_C KDE_EXPORT const char* qt_ucm_query_verification_data(); \ + TQ_EXTERN_C KDE_EXPORT TQUnknownInterface* ucm_instantiate(); \ + TQ_EXPORT_PLUGIN(PLUGIN) #endif -KDE_Q_EXPORT_PLUGIN( KPartsWidgetPlugin ) +KDE_TQ_EXPORT_PLUGIN( KPartsWidgetPlugin ) #include "kpartsdesignerplugin.moc" -- cgit v1.2.3