summaryrefslogtreecommitdiffstats
path: root/src/tools/qsettings.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:24:30 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:24:30 -0600
commita830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0 (patch)
tree3910055c634e2ca44eacd2c892118634df9b3597 /src/tools/qsettings.cpp
parentb0b53cc84f215df9b9bcce77253a6b7a9d300986 (diff)
downloadqt3-a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0.tar.gz
qt3-a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0.zip
Rename additional global TQt functions
Diffstat (limited to 'src/tools/qsettings.cpp')
-rw-r--r--src/tools/qsettings.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/tools/qsettings.cpp b/src/tools/qsettings.cpp
index 006deb7..23fd307 100644
--- a/src/tools/qsettings.cpp
+++ b/src/tools/qsettings.cpp
@@ -345,7 +345,7 @@ void QSettingsHeading::read(const QString &filename)
QFile file(filename);
if (! file.open(IO_ReadOnly)) {
#if defined(QT_CHECK_STATE)
- qWarning("QSettings: failed to open file '%s'", filename.latin1());
+ tqWarning("QSettings: failed to open file '%s'", filename.latin1());
#endif
return;
}
@@ -391,7 +391,7 @@ void QSettingsHeading::parseLine(QTextStream &stream)
} else {
if (git == end()) {
#if defined(QT_CHECK_STATE)
- qWarning("QSettings: line '%s' out of group", line.latin1());
+ tqWarning("QSettings: line '%s' out of group", line.latin1());
#endif
return;
}
@@ -399,7 +399,7 @@ void QSettingsHeading::parseLine(QTextStream &stream)
int i = line.find('=');
if (i == -1) {
#if defined(QT_CHECK_STATE)
- qWarning("QSettings: malformed line '%s' in group '%s'",
+ tqWarning("QSettings: malformed line '%s' in group '%s'",
line.latin1(), git.key().latin1());
#endif
return;
@@ -430,7 +430,7 @@ void QSettingsHeading::parseLine(QTextStream &stream)
// still escaped at EOL - manually escaped "newline"
if (stream.atEnd()) {
#if defined(QT_CHECK_STATE)
- qWarning("QSettings: reached end of file, expected continued line");
+ tqWarning("QSettings: reached end of file, expected continued line");
#endif
break;
}
@@ -503,13 +503,13 @@ QSettingsPrivate::QSettingsPrivate( QSettings::Format format )
} );
#endif // Q_OS_TEMP
#else
- defPath = qInstallPathSysconf();
+ defPath = tqInstallPathSysconf();
#endif
QDir dir(appSettings);
if (! dir.exists()) {
if (! dir.mkdir(dir.path()))
#if defined(QT_CHECK_STATE)
- qWarning("QSettings: error creating %s", dir.path().latin1());
+ tqWarning("QSettings: error creating %s", dir.path().latin1());
#else
;
#endif
@@ -804,7 +804,7 @@ void QSettings::insertSearchPath( System s, const QString &path)
if ( !qt_verify_key( path ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::insertSearchPath: Invalid key: '%s'", path.isNull() ? "(null)" : path.latin1() );
+ tqWarning( "QSettings::insertSearchPath: Invalid key: '%s'", path.isNull() ? "(null)" : path.latin1() );
#endif
return;
}
@@ -844,7 +844,7 @@ void QSettings::removeSearchPath( System s, const QString &path)
{
if ( !qt_verify_key( path ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::insertSearchPath: Invalid key: '%s'", path.isNull() ? "(null)" : path.latin1() );
+ tqWarning( "QSettings::insertSearchPath: Invalid key: '%s'", path.isNull() ? "(null)" : path.latin1() );
#endif
return;
}
@@ -985,7 +985,7 @@ bool QSettings::sync()
if ( filename.isEmpty() ) {
#ifdef QT_CHECK_STATE
- qWarning("QSettings::sync: filename is null/empty");
+ tqWarning("QSettings::sync: filename is null/empty");
#endif // QT_CHECK_STATE
success = FALSE;
@@ -1000,7 +1000,7 @@ bool QSettings::sync()
if (! file.open(IO_WriteOnly)) {
#ifdef QT_CHECK_STATE
- qWarning("QSettings::sync: failed to open '%s' for writing",
+ tqWarning("QSettings::sync: failed to open '%s' for writing",
file.name().latin1());
#endif // QT_CHECK_STATE
@@ -1041,7 +1041,7 @@ bool QSettings::sync()
if (file.status() != IO_Ok) {
#ifdef QT_CHECK_STATE
- qWarning("QSettings::sync: error at end of write");
+ tqWarning("QSettings::sync: error at end of write");
#endif // QT_CHECK_STATE
success = FALSE;
@@ -1055,7 +1055,7 @@ bool QSettings::sync()
!dir.rename( file.name(), filename, TRUE ) ) {
#ifdef QT_CHECK_STATE
- qWarning( "QSettings::sync: error writing file '%s'",
+ tqWarning( "QSettings::sync: error writing file '%s'",
QFile::encodeName( filename ).data() );
#endif // QT_CHECK_STATE
@@ -1096,7 +1096,7 @@ bool QSettings::readBoolEntry(const QString &key, bool def, bool *ok )
QString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::readBoolEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "QSettings::readBoolEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
if ( ok )
*ok = FALSE;
@@ -1121,7 +1121,7 @@ bool QSettings::readBoolEntry(const QString &key, bool def, bool *ok )
return FALSE;
if (! value.isEmpty())
- qWarning("QSettings::readBoolEntry: '%s' is not 'true' or 'false'",
+ tqWarning("QSettings::readBoolEntry: '%s' is not 'true' or 'false'",
value.latin1());
if ( ok )
*ok = FALSE;
@@ -1148,7 +1148,7 @@ double QSettings::readDoubleEntry(const QString &key, double def, bool *ok )
QString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::readDoubleEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "QSettings::readDoubleEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
if ( ok )
*ok = FALSE;
@@ -1167,7 +1167,7 @@ double QSettings::readDoubleEntry(const QString &key, double def, bool *ok )
if ( conv_ok )
return retval;
if ( ! value.isEmpty() )
- qWarning( "QSettings::readDoubleEntry: '%s' is not a number",
+ tqWarning( "QSettings::readDoubleEntry: '%s' is not a number",
value.latin1() );
if ( ok )
*ok = FALSE;
@@ -1194,7 +1194,7 @@ int QSettings::readNumEntry(const QString &key, int def, bool *ok )
QString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::readNumEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "QSettings::readNumEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
if ( ok )
*ok = FALSE;
@@ -1212,7 +1212,7 @@ int QSettings::readNumEntry(const QString &key, int def, bool *ok )
if ( conv_ok )
return retval;
if ( ! value.isEmpty() )
- qWarning( "QSettings::readNumEntry: '%s' is not a number",
+ tqWarning( "QSettings::readNumEntry: '%s' is not a number",
value.latin1() );
if ( ok )
*ok = FALSE;
@@ -1239,7 +1239,7 @@ QString QSettings::readEntry(const QString &key, const QString &def, bool *ok )
QString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::readEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "QSettings::readEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
if ( ok )
*ok = FALSE;
@@ -1263,7 +1263,7 @@ QString QSettings::readEntry(const QString &key, const QString &def, bool *ok )
if (list.count() < 2) {
#ifdef QT_CHECK_STATE
- qWarning("QSettings::readEntry: invalid key '%s'", grp_key.latin1());
+ tqWarning("QSettings::readEntry: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
if ( ok )
*ok = FALSE;
@@ -1321,7 +1321,7 @@ bool QSettings::writeEntry(const QString &key, bool value)
QString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "QSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1352,7 +1352,7 @@ bool QSettings::writeEntry(const QString &key, double value)
QString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "QSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1382,7 +1382,7 @@ bool QSettings::writeEntry(const QString &key, int value)
QString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "QSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1435,7 +1435,7 @@ bool QSettings::writeEntry(const QString &key, const QString &value)
QString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "QSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1454,7 +1454,7 @@ bool QSettings::writeEntry(const QString &key, const QString &value)
if (list.count() < 2) {
#ifdef QT_CHECK_STATE
- qWarning("QSettings::writeEntry: invalid key '%s'", grp_key.latin1());
+ tqWarning("QSettings::writeEntry: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return FALSE;
@@ -1498,7 +1498,7 @@ bool QSettings::removeEntry(const QString &key)
QString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::removeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "QSettings::removeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1515,7 +1515,7 @@ bool QSettings::removeEntry(const QString &key)
if (list.count() < 2) {
#ifdef QT_CHECK_STATE
- qWarning("QSettings::removeEntry: invalid key '%s'", grp_key.latin1());
+ tqWarning("QSettings::removeEntry: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return FALSE;
@@ -1578,7 +1578,7 @@ QStringList QSettings::entryList(const QString &key) const
QString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::entryList: Invalid key: %s", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "QSettings::entryList: Invalid key: %s", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return QStringList();
}
@@ -1595,7 +1595,7 @@ QStringList QSettings::entryList(const QString &key) const
if (list.count() < 1) {
#ifdef QT_CHECK_STATE
- qWarning("QSettings::listEntries: invalid key '%s'", grp_key.latin1());
+ tqWarning("QSettings::listEntries: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return QStringList();
@@ -1686,7 +1686,7 @@ QStringList QSettings::subkeyList(const QString &key) const
QString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::subkeyList: Invalid key: %s", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "QSettings::subkeyList: Invalid key: %s", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return QStringList();
}
@@ -1704,7 +1704,7 @@ QStringList QSettings::subkeyList(const QString &key) const
if (list.count() < 1) {
#ifdef QT_CHECK_STATE
- qWarning("QSettings::subkeyList: invalid key '%s'", grp_key.latin1());
+ tqWarning("QSettings::subkeyList: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return QStringList();
@@ -1781,7 +1781,7 @@ QDateTime QSettings::lastModificationTime( const QString &key )
QString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QSettings::lastModificationTime: Invalid key '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "QSettings::lastModificationTime: Invalid key '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return QDateTime();
}
@@ -1797,7 +1797,7 @@ QDateTime QSettings::lastModificationTime( const QString &key )
if (list.count() < 2) {
#ifdef QT_CHECK_STATE
- qWarning("QSettings::lastModificationTime: Invalid key '%s'", grp_key.latin1());
+ tqWarning("QSettings::lastModificationTime: Invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return QDateTime();
@@ -2030,7 +2030,7 @@ void QSettings::setPath( const QString &domain, const QString &product, Scope sc
if (scope == User)
actualSearchPath = QDir::homeDirPath() + "/.";
else
- actualSearchPath = QString(qInstallPathSysconf()) + "/";
+ actualSearchPath = QString(tqInstallPathSysconf()) + "/";
actualSearchPath += domain.mid( 0, lastDot ) + "/" + product;
insertSearchPath( Unix, actualSearchPath );
#endif