From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konqueror/konq_factory.cc | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'konqueror/konq_factory.cc') diff --git a/konqueror/konq_factory.cc b/konqueror/konq_factory.cc index 9eeeac1fa..8dfee7f85 100644 --- a/konqueror/konq_factory.cc +++ b/konqueror/konq_factory.cc @@ -30,28 +30,28 @@ #include #include -#include -#include +#include +#include #include KAboutData *KonqFactory::s_aboutData = 0; -KonqViewFactory::KonqViewFactory( KLibFactory *factory, const QStringList &args, +KonqViewFactory::KonqViewFactory( KLibFactory *factory, const TQStringList &args, bool createBrowser ) : m_factory( factory ), m_args( args ), m_createBrowser( createBrowser ) { if ( m_createBrowser ) - m_args << QString::fromLatin1( "Browser/View" ); + m_args << TQString::fromLatin1( "Browser/View" ); } -KParts::ReadOnlyPart *KonqViewFactory::create( QWidget *parentWidget, const char *widgetName, - QObject * parent, const char *name ) +KParts::ReadOnlyPart *KonqViewFactory::create( TQWidget *parentWidget, const char *widgetName, + TQObject * parent, const char *name ) { if ( !m_factory ) return 0L; - QObject *obj = 0L; + TQObject *obj = 0L; if ( m_factory->inherits( "KParts::Factory" ) ) { @@ -74,17 +74,17 @@ KParts::ReadOnlyPart *KonqViewFactory::create( QWidget *parentWidget, const char kdError(1202) << "Part " << obj << " (" << obj->className() << ") doesn't inherit KParts::ReadOnlyPart !" << endl; KParts::ReadOnlyPart* part = static_cast( obj ); - QFrame* frame = ::qt_cast( part->widget() ); + TQFrame* frame = ::qt_cast( part->widget() ); if (frame) { - frame->setFrameStyle( QFrame::NoFrame ); + frame->setFrameStyle( TQFrame::NoFrame ); } return part; } -KonqViewFactory KonqFactory::createView( const QString &serviceType, - const QString &serviceName, +KonqViewFactory KonqFactory::createView( const TQString &serviceType, + const TQString &serviceName, KService::Ptr *serviceImpl, KTrader::OfferList *partServiceOffers, KTrader::OfferList *appServiceOffers, @@ -142,7 +142,7 @@ KonqViewFactory KonqFactory::createView( const QString &serviceType, if ( service ) { kdDebug(1202) << "Trying to open lib for requested service " << service->desktopEntryName() << endl; - factory = KLibLoader::self()->factory( QFile::encodeName(service->library()) ); + factory = KLibLoader::self()->factory( TQFile::encodeName(service->library()) ); if ( !factory ) KMessageBox::error(0, i18n("There was an error loading the module %1.\nThe diagnostics is:\n%2") @@ -154,13 +154,13 @@ KonqViewFactory KonqFactory::createView( const QString &serviceType, { service = (*it); // Allowed as default ? - QVariant prop = service->property( "X-KDE-BrowserView-AllowAsDefault" ); + TQVariant prop = service->property( "X-KDE-BrowserView-AllowAsDefault" ); kdDebug(1202) << service->desktopEntryName() << " : X-KDE-BrowserView-AllowAsDefault is valid : " << prop.isValid() << endl; if ( !prop.isValid() || prop.toBool() ) // defaults to true { //kdDebug(1202) << "Trying to open lib for service " << service->name() << endl; // Try loading factory - factory = KLibLoader::self()->factory( QFile::encodeName(service->library()) ); + factory = KLibLoader::self()->factory( TQFile::encodeName(service->library()) ); if ( !factory ) KMessageBox::error(0, i18n("There was an error loading the module %1.\nThe diagnostics is:\n%2") @@ -179,20 +179,20 @@ KonqViewFactory KonqFactory::createView( const QString &serviceType, return KonqViewFactory(); } - QStringList args; + TQStringList args; - QVariant prop = service->property( "X-KDE-BrowserView-Args" ); + TQVariant prop = service->property( "X-KDE-BrowserView-Args" ); if ( prop.isValid() ) { - QString argStr = prop.toString(); - args = QStringList::split( " ", argStr ); + TQString argStr = prop.toString(); + args = TQStringList::split( " ", argStr ); } return KonqViewFactory( factory, args, service->serviceTypes().contains( "Browser/View" ) ); } -void KonqFactory::getOffers( const QString & serviceType, +void KonqFactory::getOffers( const TQString & serviceType, KTrader::OfferList *partServiceOffers, KTrader::OfferList *appServiceOffers ) { @@ -200,13 +200,13 @@ void KonqFactory::getOffers( const QString & serviceType, { *appServiceOffers = KTrader::self()->query( serviceType, "Application", "DesktopEntryName != 'kfmclient' and DesktopEntryName != 'kfmclient_dir' and DesktopEntryName != 'kfmclient_html'", - QString::null ); + TQString::null ); } if ( partServiceOffers ) { *partServiceOffers = KTrader::self()->query( serviceType, "KParts/ReadOnlyPart", - QString::null, QString::null ); + TQString::null, TQString::null ); } } -- cgit v1.2.1