summaryrefslogtreecommitdiffstats
path: root/konqueror/konq_factory.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /konqueror/konq_factory.cc
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konqueror/konq_factory.cc')
-rw-r--r--konqueror/konq_factory.cc42
1 files changed, 21 insertions, 21 deletions
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 <klocale.h>
#include <kmessagebox.h>
-#include <qwidget.h>
-#include <qfile.h>
+#include <tqwidget.h>
+#include <tqfile.h>
#include <assert.h>
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<KParts::ReadOnlyPart *>( obj );
- QFrame* frame = ::qt_cast<QFrame*>( part->widget() );
+ TQFrame* frame = ::qt_cast<TQFrame*>( 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 );
}
}