summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/kconfig_imp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/bindings/kconfig_imp.cpp')
-rw-r--r--kjsembed/bindings/kconfig_imp.cpp114
1 files changed, 57 insertions, 57 deletions
diff --git a/kjsembed/bindings/kconfig_imp.cpp b/kjsembed/bindings/kconfig_imp.cpp
index f45e4d42..d4f2a290 100644
--- a/kjsembed/bindings/kconfig_imp.cpp
+++ b/kjsembed/bindings/kconfig_imp.cpp
@@ -27,12 +27,12 @@
#include <kapplication.h>
#include "kconfig_imp.moc"
#else
-#include <qsettings.h>
+#include <tqsettings.h>
#endif
namespace KJSEmbed {
namespace Bindings {
-Config::Config( QObject *parent, const char *name)
+Config::Config( TQObject *parent, const char *name)
: BindingObject(parent, name)
{
@@ -46,21 +46,21 @@ Config::Config( QObject *parent, const char *name)
kdWarning( 80001 ) << "Could not write to config file." << endl;
}
#else
- m_config = new QSettings();
+ m_config = new TQSettings();
if( name == 0)
m_name = "qjcmd";
else
m_name = name;
- m_config->setPath( "QJSEmbed",m_name, QSettings::User );
+ m_config->setPath( "QJSEmbed",m_name, TQSettings::User );
m_forceGlobal = false;
#endif
}
/*
-Config::Config( QObject *parent, const char *name , const QString& confName)
+Config::Config( TQObject *parent, const char *name , const TQString& confName)
: BindingObject(parent, name)
{
- QString fileName = ::locate("kde_config", confName);
+ TQString fileName = ::locate("kde_config", confName);
m_config = new KConfig(fileName);
}
*/
@@ -82,7 +82,7 @@ void Config::setDesktopGroup()
#endif
}
-void Config::setGroup(const QString& group)
+void Config::setGroup(const TQString& group)
{
#ifndef QT_ONLY
m_config->setGroup(group);
@@ -92,12 +92,12 @@ void Config::setGroup(const QString& group)
#endif
}
-QString Config::group()
+TQString Config::group()
{
return m_config->group();
}
-QStringList Config::groupList()
+TQStringList Config::groupList()
{
#ifndef QT_ONLY
return m_config->groupList();
@@ -107,7 +107,7 @@ QStringList Config::groupList()
#endif
}
-QString Config::locale()
+TQString Config::locale()
{
#ifndef QT_ONLY
return m_config->locale();
@@ -122,7 +122,7 @@ void Config::setForceGlobal( bool force )
m_config->setForceGlobal(force);
#else
m_forceGlobal = force;
- m_config->setPath( "QJSEmbed",m_name, (force)?QSettings::Global:QSettings::User );
+ m_config->setPath( "QJSEmbed",m_name, (force)?TQSettings::Global:TQSettings::User );
#endif
}
@@ -203,7 +203,7 @@ void Config::sync()
m_config->sync();
}
-bool Config::hasKey( const QString& key ) const
+bool Config::hasKey( const TQString& key ) const
{
#ifndef QT_ONLY
return m_config->hasKey(key);
@@ -212,7 +212,7 @@ bool Config::hasKey( const QString& key ) const
#endif
}
-bool Config::entryIsImmutable(const QString &key) const
+bool Config::entryIsImmutable(const TQString &key) const
{
#ifndef QT_ONLY
return m_config->entryIsImmutable(key);
@@ -222,7 +222,7 @@ bool Config::entryIsImmutable(const QString &key) const
#endif
}
-void Config::revertToDefault(const QString &key)
+void Config::revertToDefault(const TQString &key)
{
#ifndef QT_ONLY
m_config->revertToDefault(key);
@@ -231,7 +231,7 @@ void Config::revertToDefault(const QString &key)
#endif
}
-bool Config::hasDefault(const QString &key) const
+bool Config::hasDefault(const TQString &key) const
{
#ifndef QT_ONLY
return m_config->hasDefault(key);
@@ -250,28 +250,28 @@ void Config::setFileWriteMode(int mode)
#endif
}
-QString Config::readEntry(const QString& pKey, const QString& aDefault ) const
+TQString Config::readEntry(const TQString& pKey, const TQString& aDefault ) const
{
return m_config->readEntry(pKey,aDefault);
}
-QVariant Config::readPropertyEntry( const QString& pKey, const QVariant &pDefault) const
+TQVariant Config::readPropertyEntry( const TQString& pKey, const TQVariant &pDefault) const
{
#ifndef QT_ONLY
return m_config->readPropertyEntry(pKey,pDefault);
#else
- QVariant returnVariant;
+ TQVariant returnVariant;
returnVariant = m_config->readEntry(pKey, pDefault.toString());
return returnVariant;
#endif
}
-QStringList Config::readListEntry( const QString& pKey ) const
+TQStringList Config::readListEntry( const TQString& pKey ) const
{
return m_config->readListEntry(pKey);
}
-QString Config::readPathEntry( const QString& pKey, const QString & aDefault ) const
+TQString Config::readPathEntry( const TQString& pKey, const TQString & aDefault ) const
{
#ifndef QT_ONLY
return m_config->readPathEntry(pKey,aDefault);
@@ -280,7 +280,7 @@ QString Config::readPathEntry( const QString& pKey, const QString & aDefault ) c
#endif
}
-QStringList Config::readPathListEntry( const QString& pKey ) const
+TQStringList Config::readPathListEntry( const TQString& pKey ) const
{
#ifndef QT_ONLY
return m_config->readPathListEntry(pKey);
@@ -290,12 +290,12 @@ QStringList Config::readPathListEntry( const QString& pKey ) const
}
-int Config::readNumEntry( const QString& pKey, int nDefault) const
+int Config::readNumEntry( const TQString& pKey, int nDefault) const
{
return m_config->readNumEntry(pKey,nDefault);
}
-uint Config::readUnsignedNumEntry( const QString& pKey, uint nDefault) const
+uint Config::readUnsignedNumEntry( const TQString& pKey, uint nDefault) const
{
#ifndef QT_ONLY
return m_config->readUnsignedNumEntry(pKey,nDefault);
@@ -304,7 +304,7 @@ uint Config::readUnsignedNumEntry( const QString& pKey, uint nDefault) const
#endif
}
-long Config::readLongNumEntry( const QString& pKey, long nDefault) const
+long Config::readLongNumEntry( const TQString& pKey, long nDefault) const
{
#ifndef QT_ONLY
return m_config->readLongNumEntry(pKey,nDefault);
@@ -313,7 +313,7 @@ long Config::readLongNumEntry( const QString& pKey, long nDefault) const
#endif
}
-double Config::readDoubleNumEntry( const QString& pKey, double nDefault ) const
+double Config::readDoubleNumEntry( const TQString& pKey, double nDefault ) const
{
#ifndef QT_ONLY
return m_config->readDoubleNumEntry(pKey,nDefault);
@@ -322,66 +322,66 @@ double Config::readDoubleNumEntry( const QString& pKey, double nDefault ) const
#endif
}
-QFont Config::readFontEntry( const QString& pKey, const QFont* pDefault ) const
+TQFont Config::readFontEntry( const TQString& pKey, const TQFont* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readFontEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,QVariant(*pDefault)).toFont();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toFont();
#endif
}
-bool Config::readBoolEntry( const QString& pKey, const bool bDefault ) const
+bool Config::readBoolEntry( const TQString& pKey, const bool bDefault ) const
{
return m_config->readBoolEntry(pKey,bDefault);
}
-QRect Config::readRectEntry( const QString& pKey, const QRect* pDefault ) const
+TQRect Config::readRectEntry( const TQString& pKey, const TQRect* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readRectEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,QVariant(*pDefault)).toRect();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toRect();
#endif
}
-QPoint Config::readPointEntry( const QString& pKey, const QPoint* pDefault ) const
+TQPoint Config::readPointEntry( const TQString& pKey, const TQPoint* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readPointEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,QVariant(*pDefault)).toPoint();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toPoint();
#endif
}
-QSize Config::readSizeEntry( const QString& pKey, const QSize* pDefault ) const
+TQSize Config::readSizeEntry( const TQString& pKey, const TQSize* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readSizeEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,QVariant(*pDefault)).toSize();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toSize();
#endif
}
-QColor Config::readColorEntry( const QString& pKey, const QColor* pDefault ) const
+TQColor Config::readColorEntry( const TQString& pKey, const TQColor* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readColorEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,QVariant(*pDefault)).toColor();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toColor();
#endif
}
-QDateTime Config::readDateTimeEntry( const QString& pKey, const QDateTime* pDefault) const
+TQDateTime Config::readDateTimeEntry( const TQString& pKey, const TQDateTime* pDefault) const
{
#ifndef QT_ONLY
return m_config->readDateTimeEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,QVariant(*pDefault)).toDateTime();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toDateTime();
#endif
}
-QString Config::readEntryUntranslated( const QString& pKey, const QString& aDefault ) const
+TQString Config::readEntryUntranslated( const TQString& pKey, const TQString& aDefault ) const
{
#ifndef QT_ONLY
return m_config->readEntryUntranslated(pKey,aDefault);
@@ -389,12 +389,12 @@ QString Config::readEntryUntranslated( const QString& pKey, const QString& aDefa
return m_config->readEntry(pKey,aDefault);
#endif
}
-void Config::writeEntry( const QString& pKey, const QString& pValue )
+void Config::writeEntry( const TQString& pKey, const TQString& pValue )
{
m_config->writeEntry(pKey,pValue);
}
-void Config::writePropertyEntry( const QString& pKey, const QVariant& pValue )
+void Config::writePropertyEntry( const TQString& pKey, const TQVariant& pValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, pValue );
@@ -403,7 +403,7 @@ void Config::writePropertyEntry( const QString& pKey, const QVariant& pValue )
#endif
}
-void Config::writeListEntry( const QString& pKey, const QStringList &rValue )
+void Config::writeListEntry( const TQString& pKey, const TQStringList &rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -412,7 +412,7 @@ void Config::writeListEntry( const QString& pKey, const QStringList &rValue )
#endif
}
-void Config::writeNumEntry( const QString& pKey, int nValue )
+void Config::writeNumEntry( const TQString& pKey, int nValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, nValue );
@@ -420,7 +420,7 @@ void Config::writeNumEntry( const QString& pKey, int nValue )
m_config->writeEntry(pKey,nValue);
#endif
}
-void Config::writeUnsignedNumEntry( const QString& pKey, uint nValue )
+void Config::writeUnsignedNumEntry( const TQString& pKey, uint nValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, nValue );
@@ -428,7 +428,7 @@ void Config::writeUnsignedNumEntry( const QString& pKey, uint nValue )
writeNumEntry(pKey, (int)nValue );
#endif
}
-void Config::writeLongNumEntry( const QString& pKey, unsigned long nValue )
+void Config::writeLongNumEntry( const TQString& pKey, unsigned long nValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, nValue );
@@ -436,15 +436,15 @@ void Config::writeLongNumEntry( const QString& pKey, unsigned long nValue )
writeNumEntry(pKey, (int)nValue);
#endif
}
-void Config::writeDoubleNumEntry( const QString& pKey, double nValue )
+void Config::writeDoubleNumEntry( const TQString& pKey, double nValue )
{
m_config->writeEntry(pKey,nValue);
}
-void Config::writeBoolEntry( const QString& pKey, bool bValue )
+void Config::writeBoolEntry( const TQString& pKey, bool bValue )
{
m_config->writeEntry(pKey,bValue);
}
-void Config::writeFontEntry( const QString& pKey, const QFont& rFont )
+void Config::writeFontEntry( const TQString& pKey, const TQFont& rFont )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rFont );
@@ -453,7 +453,7 @@ void Config::writeFontEntry( const QString& pKey, const QFont& rFont )
#endif
}
-void Config::writeColorEntry( const QString& pKey, const QColor& rColor )
+void Config::writeColorEntry( const TQString& pKey, const TQColor& rColor )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rColor );
@@ -462,7 +462,7 @@ void Config::writeColorEntry( const QString& pKey, const QColor& rColor )
#endif
}
-void Config::writeDateTimeEntry( const QString& pKey, const QDateTime& rDateTime )
+void Config::writeDateTimeEntry( const TQString& pKey, const TQDateTime& rDateTime )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rDateTime );
@@ -471,7 +471,7 @@ void Config::writeDateTimeEntry( const QString& pKey, const QDateTime& rDateTime
#endif
}
-void Config::writeRectEntry( const QString& pKey, const QRect& rValue )
+void Config::writeRectEntry( const TQString& pKey, const TQRect& rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -480,7 +480,7 @@ void Config::writeRectEntry( const QString& pKey, const QRect& rValue )
#endif
}
-void Config::writePointEntry( const QString& pKey, const QPoint& rValue )
+void Config::writePointEntry( const TQString& pKey, const TQPoint& rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -489,7 +489,7 @@ void Config::writePointEntry( const QString& pKey, const QPoint& rValue )
#endif
}
-void Config::writeSizeEntry( const QString& pKey, const QSize& rValue )
+void Config::writeSizeEntry( const TQString& pKey, const TQSize& rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -497,7 +497,7 @@ void Config::writeSizeEntry( const QString& pKey, const QSize& rValue )
writePropertyEntry(pKey,rValue);
#endif
}
-void Config::writePathEntry( const QString& pKey, const QString & path )
+void Config::writePathEntry( const TQString& pKey, const TQString & path )
{
#ifndef QT_ONLY
m_config->writePathEntry(pKey,path);
@@ -505,7 +505,7 @@ void Config::writePathEntry( const QString& pKey, const QString & path )
writeEntry(pKey,path);
#endif
}
-void Config::writePathListEntry( const QString& pKey, const QStringList &rValue )
+void Config::writePathListEntry( const TQString& pKey, const TQStringList &rValue )
{
#ifndef QT_ONLY
m_config->writePathEntry(pKey,rValue);
@@ -513,7 +513,7 @@ void Config::writePathListEntry( const QString& pKey, const QStringList &rValue
writeListEntry(pKey,rValue);
#endif
}
-void Config::deleteEntry( const QString& pKey, bool bNLS , bool bGlobal )
+void Config::deleteEntry( const TQString& pKey, bool bNLS , bool bGlobal )
{
#ifndef QT_ONLY
m_config->deleteEntry(pKey,bNLS,bGlobal);
@@ -523,7 +523,7 @@ void Config::deleteEntry( const QString& pKey, bool bNLS , bool bGlobal )
m_config->removeEntry(pKey);
#endif
}
-bool Config::deleteGroup( const QString& group, bool bDeep , bool bGlobal )
+bool Config::deleteGroup( const TQString& group, bool bDeep , bool bGlobal )
{
#ifndef QT_ONLY
return m_config->deleteGroup(group,bDeep,bGlobal);