summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/kconfig_imp.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/bindings/kconfig_imp.cpp
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kjsembed/bindings/kconfig_imp.cpp')
-rw-r--r--kjsembed/bindings/kconfig_imp.cpp112
1 files changed, 56 insertions, 56 deletions
diff --git a/kjsembed/bindings/kconfig_imp.cpp b/kjsembed/bindings/kconfig_imp.cpp
index d4f2a290..c669663f 100644
--- a/kjsembed/bindings/kconfig_imp.cpp
+++ b/kjsembed/bindings/kconfig_imp.cpp
@@ -32,7 +32,7 @@
namespace KJSEmbed {
namespace Bindings {
-Config::Config( TQObject *parent, const char *name)
+Config::Config( TTQObject *parent, const char *name)
: BindingObject(parent, name)
{
@@ -46,21 +46,21 @@ Config::Config( TQObject *parent, const char *name)
kdWarning( 80001 ) << "Could not write to config file." << endl;
}
#else
- m_config = new TQSettings();
+ m_config = new TTQSettings();
if( name == 0)
m_name = "qjcmd";
else
m_name = name;
- m_config->setPath( "QJSEmbed",m_name, TQSettings::User );
+ m_config->setPath( "TQJSEmbed",m_name, TTQSettings::User );
m_forceGlobal = false;
#endif
}
/*
-Config::Config( TQObject *parent, const char *name , const TQString& confName)
+Config::Config( TTQObject *parent, const char *name , const TTQString& confName)
: BindingObject(parent, name)
{
- TQString fileName = ::locate("kde_config", confName);
+ TTQString fileName = ::locate("kde_config", confName);
m_config = new KConfig(fileName);
}
*/
@@ -82,7 +82,7 @@ void Config::setDesktopGroup()
#endif
}
-void Config::setGroup(const TQString& group)
+void Config::setGroup(const TTQString& group)
{
#ifndef QT_ONLY
m_config->setGroup(group);
@@ -92,12 +92,12 @@ void Config::setGroup(const TQString& group)
#endif
}
-TQString Config::group()
+TTQString Config::group()
{
return m_config->group();
}
-TQStringList Config::groupList()
+TTQStringList Config::groupList()
{
#ifndef QT_ONLY
return m_config->groupList();
@@ -107,7 +107,7 @@ TQStringList Config::groupList()
#endif
}
-TQString Config::locale()
+TTQString 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)?TQSettings::Global:TQSettings::User );
+ m_config->setPath( "TQJSEmbed",m_name, (force)?TTQSettings::Global:TTQSettings::User );
#endif
}
@@ -203,7 +203,7 @@ void Config::sync()
m_config->sync();
}
-bool Config::hasKey( const TQString& key ) const
+bool Config::hasKey( const TTQString& key ) const
{
#ifndef QT_ONLY
return m_config->hasKey(key);
@@ -212,7 +212,7 @@ bool Config::hasKey( const TQString& key ) const
#endif
}
-bool Config::entryIsImmutable(const TQString &key) const
+bool Config::entryIsImmutable(const TTQString &key) const
{
#ifndef QT_ONLY
return m_config->entryIsImmutable(key);
@@ -222,7 +222,7 @@ bool Config::entryIsImmutable(const TQString &key) const
#endif
}
-void Config::revertToDefault(const TQString &key)
+void Config::revertToDefault(const TTQString &key)
{
#ifndef QT_ONLY
m_config->revertToDefault(key);
@@ -231,7 +231,7 @@ void Config::revertToDefault(const TQString &key)
#endif
}
-bool Config::hasDefault(const TQString &key) const
+bool Config::hasDefault(const TTQString &key) const
{
#ifndef QT_ONLY
return m_config->hasDefault(key);
@@ -250,28 +250,28 @@ void Config::setFileWriteMode(int mode)
#endif
}
-TQString Config::readEntry(const TQString& pKey, const TQString& aDefault ) const
+TTQString Config::readEntry(const TTQString& pKey, const TTQString& aDefault ) const
{
return m_config->readEntry(pKey,aDefault);
}
-TQVariant Config::readPropertyEntry( const TQString& pKey, const TQVariant &pDefault) const
+TTQVariant Config::readPropertyEntry( const TTQString& pKey, const TTQVariant &pDefault) const
{
#ifndef QT_ONLY
return m_config->readPropertyEntry(pKey,pDefault);
#else
- TQVariant returnVariant;
+ TTQVariant returnVariant;
returnVariant = m_config->readEntry(pKey, pDefault.toString());
return returnVariant;
#endif
}
-TQStringList Config::readListEntry( const TQString& pKey ) const
+TTQStringList Config::readListEntry( const TTQString& pKey ) const
{
return m_config->readListEntry(pKey);
}
-TQString Config::readPathEntry( const TQString& pKey, const TQString & aDefault ) const
+TTQString Config::readPathEntry( const TTQString& pKey, const TTQString & aDefault ) const
{
#ifndef QT_ONLY
return m_config->readPathEntry(pKey,aDefault);
@@ -280,7 +280,7 @@ TQString Config::readPathEntry( const TQString& pKey, const TQString & aDefault
#endif
}
-TQStringList Config::readPathListEntry( const TQString& pKey ) const
+TTQStringList Config::readPathListEntry( const TTQString& pKey ) const
{
#ifndef QT_ONLY
return m_config->readPathListEntry(pKey);
@@ -290,12 +290,12 @@ TQStringList Config::readPathListEntry( const TQString& pKey ) const
}
-int Config::readNumEntry( const TQString& pKey, int nDefault) const
+int Config::readNumEntry( const TTQString& pKey, int nDefault) const
{
return m_config->readNumEntry(pKey,nDefault);
}
-uint Config::readUnsignedNumEntry( const TQString& pKey, uint nDefault) const
+uint Config::readUnsignedNumEntry( const TTQString& pKey, uint nDefault) const
{
#ifndef QT_ONLY
return m_config->readUnsignedNumEntry(pKey,nDefault);
@@ -304,7 +304,7 @@ uint Config::readUnsignedNumEntry( const TQString& pKey, uint nDefault) const
#endif
}
-long Config::readLongNumEntry( const TQString& pKey, long nDefault) const
+long Config::readLongNumEntry( const TTQString& pKey, long nDefault) const
{
#ifndef QT_ONLY
return m_config->readLongNumEntry(pKey,nDefault);
@@ -313,7 +313,7 @@ long Config::readLongNumEntry( const TQString& pKey, long nDefault) const
#endif
}
-double Config::readDoubleNumEntry( const TQString& pKey, double nDefault ) const
+double Config::readDoubleNumEntry( const TTQString& pKey, double nDefault ) const
{
#ifndef QT_ONLY
return m_config->readDoubleNumEntry(pKey,nDefault);
@@ -322,66 +322,66 @@ double Config::readDoubleNumEntry( const TQString& pKey, double nDefault ) const
#endif
}
-TQFont Config::readFontEntry( const TQString& pKey, const TQFont* pDefault ) const
+TTQFont Config::readFontEntry( const TTQString& pKey, const TTQFont* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readFontEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TQVariant(*pDefault)).toFont();
+ return readPropertyEntry(pKey,TTQVariant(*pDefault)).toFont();
#endif
}
-bool Config::readBoolEntry( const TQString& pKey, const bool bDefault ) const
+bool Config::readBoolEntry( const TTQString& pKey, const bool bDefault ) const
{
return m_config->readBoolEntry(pKey,bDefault);
}
-TQRect Config::readRectEntry( const TQString& pKey, const TQRect* pDefault ) const
+TTQRect Config::readRectEntry( const TTQString& pKey, const TTQRect* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readRectEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TQVariant(*pDefault)).toRect();
+ return readPropertyEntry(pKey,TTQVariant(*pDefault)).toRect();
#endif
}
-TQPoint Config::readPointEntry( const TQString& pKey, const TQPoint* pDefault ) const
+TTQPoint Config::readPointEntry( const TTQString& pKey, const TTQPoint* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readPointEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TQVariant(*pDefault)).toPoint();
+ return readPropertyEntry(pKey,TTQVariant(*pDefault)).toPoint();
#endif
}
-TQSize Config::readSizeEntry( const TQString& pKey, const TQSize* pDefault ) const
+TTQSize Config::readSizeEntry( const TTQString& pKey, const TTQSize* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readSizeEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TQVariant(*pDefault)).toSize();
+ return readPropertyEntry(pKey,TTQVariant(*pDefault)).toSize();
#endif
}
-TQColor Config::readColorEntry( const TQString& pKey, const TQColor* pDefault ) const
+TTQColor Config::readColorEntry( const TTQString& pKey, const TTQColor* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readColorEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TQVariant(*pDefault)).toColor();
+ return readPropertyEntry(pKey,TTQVariant(*pDefault)).toColor();
#endif
}
-TQDateTime Config::readDateTimeEntry( const TQString& pKey, const TQDateTime* pDefault) const
+TTQDateTime Config::readDateTimeEntry( const TTQString& pKey, const TTQDateTime* pDefault) const
{
#ifndef QT_ONLY
return m_config->readDateTimeEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TQVariant(*pDefault)).toDateTime();
+ return readPropertyEntry(pKey,TTQVariant(*pDefault)).toDateTime();
#endif
}
-TQString Config::readEntryUntranslated( const TQString& pKey, const TQString& aDefault ) const
+TTQString Config::readEntryUntranslated( const TTQString& pKey, const TTQString& aDefault ) const
{
#ifndef QT_ONLY
return m_config->readEntryUntranslated(pKey,aDefault);
@@ -389,12 +389,12 @@ TQString Config::readEntryUntranslated( const TQString& pKey, const TQString& aD
return m_config->readEntry(pKey,aDefault);
#endif
}
-void Config::writeEntry( const TQString& pKey, const TQString& pValue )
+void Config::writeEntry( const TTQString& pKey, const TTQString& pValue )
{
m_config->writeEntry(pKey,pValue);
}
-void Config::writePropertyEntry( const TQString& pKey, const TQVariant& pValue )
+void Config::writePropertyEntry( const TTQString& pKey, const TTQVariant& pValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, pValue );
@@ -403,7 +403,7 @@ void Config::writePropertyEntry( const TQString& pKey, const TQVariant& pValue
#endif
}
-void Config::writeListEntry( const TQString& pKey, const TQStringList &rValue )
+void Config::writeListEntry( const TTQString& pKey, const TTQStringList &rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -412,7 +412,7 @@ void Config::writeListEntry( const TQString& pKey, const TQStringList &rValue
#endif
}
-void Config::writeNumEntry( const TQString& pKey, int nValue )
+void Config::writeNumEntry( const TTQString& pKey, int nValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, nValue );
@@ -420,7 +420,7 @@ void Config::writeNumEntry( const TQString& pKey, int nValue )
m_config->writeEntry(pKey,nValue);
#endif
}
-void Config::writeUnsignedNumEntry( const TQString& pKey, uint nValue )
+void Config::writeUnsignedNumEntry( const TTQString& pKey, uint nValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, nValue );
@@ -428,7 +428,7 @@ void Config::writeUnsignedNumEntry( const TQString& pKey, uint nValue )
writeNumEntry(pKey, (int)nValue );
#endif
}
-void Config::writeLongNumEntry( const TQString& pKey, unsigned long nValue )
+void Config::writeLongNumEntry( const TTQString& pKey, unsigned long nValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, nValue );
@@ -436,15 +436,15 @@ void Config::writeLongNumEntry( const TQString& pKey, unsigned long nValue )
writeNumEntry(pKey, (int)nValue);
#endif
}
-void Config::writeDoubleNumEntry( const TQString& pKey, double nValue )
+void Config::writeDoubleNumEntry( const TTQString& pKey, double nValue )
{
m_config->writeEntry(pKey,nValue);
}
-void Config::writeBoolEntry( const TQString& pKey, bool bValue )
+void Config::writeBoolEntry( const TTQString& pKey, bool bValue )
{
m_config->writeEntry(pKey,bValue);
}
-void Config::writeFontEntry( const TQString& pKey, const TQFont& rFont )
+void Config::writeFontEntry( const TTQString& pKey, const TTQFont& rFont )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rFont );
@@ -453,7 +453,7 @@ void Config::writeFontEntry( const TQString& pKey, const TQFont& rFont )
#endif
}
-void Config::writeColorEntry( const TQString& pKey, const TQColor& rColor )
+void Config::writeColorEntry( const TTQString& pKey, const TTQColor& rColor )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rColor );
@@ -462,7 +462,7 @@ void Config::writeColorEntry( const TQString& pKey, const TQColor& rColor )
#endif
}
-void Config::writeDateTimeEntry( const TQString& pKey, const TQDateTime& rDateTime )
+void Config::writeDateTimeEntry( const TTQString& pKey, const TTQDateTime& rDateTime )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rDateTime );
@@ -471,7 +471,7 @@ void Config::writeDateTimeEntry( const TQString& pKey, const TQDateTime& rDateTi
#endif
}
-void Config::writeRectEntry( const TQString& pKey, const TQRect& rValue )
+void Config::writeRectEntry( const TTQString& pKey, const TTQRect& rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -480,7 +480,7 @@ void Config::writeRectEntry( const TQString& pKey, const TQRect& rValue )
#endif
}
-void Config::writePointEntry( const TQString& pKey, const TQPoint& rValue )
+void Config::writePointEntry( const TTQString& pKey, const TTQPoint& rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -489,7 +489,7 @@ void Config::writePointEntry( const TQString& pKey, const TQPoint& rValue )
#endif
}
-void Config::writeSizeEntry( const TQString& pKey, const TQSize& rValue )
+void Config::writeSizeEntry( const TTQString& pKey, const TTQSize& rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -497,7 +497,7 @@ void Config::writeSizeEntry( const TQString& pKey, const TQSize& rValue )
writePropertyEntry(pKey,rValue);
#endif
}
-void Config::writePathEntry( const TQString& pKey, const TQString & path )
+void Config::writePathEntry( const TTQString& pKey, const TTQString & path )
{
#ifndef QT_ONLY
m_config->writePathEntry(pKey,path);
@@ -505,7 +505,7 @@ void Config::writePathEntry( const TQString& pKey, const TQString & path )
writeEntry(pKey,path);
#endif
}
-void Config::writePathListEntry( const TQString& pKey, const TQStringList &rValue )
+void Config::writePathListEntry( const TTQString& pKey, const TTQStringList &rValue )
{
#ifndef QT_ONLY
m_config->writePathEntry(pKey,rValue);
@@ -513,7 +513,7 @@ void Config::writePathListEntry( const TQString& pKey, const TQStringList &rValu
writeListEntry(pKey,rValue);
#endif
}
-void Config::deleteEntry( const TQString& pKey, bool bNLS , bool bGlobal )
+void Config::deleteEntry( const TTQString& pKey, bool bNLS , bool bGlobal )
{
#ifndef QT_ONLY
m_config->deleteEntry(pKey,bNLS,bGlobal);
@@ -523,7 +523,7 @@ void Config::deleteEntry( const TQString& pKey, bool bNLS , bool bGlobal )
m_config->removeEntry(pKey);
#endif
}
-bool Config::deleteGroup( const TQString& group, bool bDeep , bool bGlobal )
+bool Config::deleteGroup( const TTQString& group, bool bDeep , bool bGlobal )
{
#ifndef QT_ONLY
return m_config->deleteGroup(group,bDeep,bGlobal);