summaryrefslogtreecommitdiffstats
path: root/src/tools/qsettings.cpp
diff options
context:
space:
mode:
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 640d5643c..d5e9f81c0 100644
--- a/src/tools/qsettings.cpp
+++ b/src/tools/qsettings.cpp
@@ -345,7 +345,7 @@ void TQSettingsHeading::read(const TQString &filename)
TQFile file(filename);
if (! file.open(IO_ReadOnly)) {
#if defined(QT_CHECK_STATE)
- qWarning("TQSettings: failed to open file '%s'", filename.latin1());
+ tqWarning("TQSettings: failed to open file '%s'", filename.latin1());
#endif
return;
}
@@ -391,7 +391,7 @@ void TQSettingsHeading::parseLine(TQTextStream &stream)
} else {
if (git == end()) {
#if defined(QT_CHECK_STATE)
- qWarning("TQSettings: line '%s' out of group", line.latin1());
+ tqWarning("TQSettings: line '%s' out of group", line.latin1());
#endif
return;
}
@@ -399,7 +399,7 @@ void TQSettingsHeading::parseLine(TQTextStream &stream)
int i = line.find('=');
if (i == -1) {
#if defined(QT_CHECK_STATE)
- qWarning("TQSettings: malformed line '%s' in group '%s'",
+ tqWarning("TQSettings: malformed line '%s' in group '%s'",
line.latin1(), git.key().latin1());
#endif
return;
@@ -430,7 +430,7 @@ void TQSettingsHeading::parseLine(TQTextStream &stream)
// still escaped at EOL - manually escaped "newline"
if (stream.atEnd()) {
#if defined(QT_CHECK_STATE)
- qWarning("TQSettings: reached end of file, expected continued line");
+ tqWarning("TQSettings: reached end of file, expected continued line");
#endif
break;
}
@@ -503,13 +503,13 @@ TQSettingsPrivate::TQSettingsPrivate( TQSettings::Format format )
} );
#endif // Q_OS_TEMP
#else
- defPath = qInstallPathSysconf();
+ defPath = tqInstallPathSysconf();
#endif
TQDir dir(appSettings);
if (! dir.exists()) {
if (! dir.mkdir(dir.path()))
#if defined(QT_CHECK_STATE)
- qWarning("TQSettings: error creating %s", dir.path().latin1());
+ tqWarning("TQSettings: error creating %s", dir.path().latin1());
#else
;
#endif
@@ -804,7 +804,7 @@ void TQSettings::insertSearchPath( System s, const TQString &path)
if ( !qt_verify_key( path ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::insertSearchPath: Invalid key: '%s'", path.isNull() ? "(null)" : path.latin1() );
+ tqWarning( "TQSettings::insertSearchPath: Invalid key: '%s'", path.isNull() ? "(null)" : path.latin1() );
#endif
return;
}
@@ -844,7 +844,7 @@ void TQSettings::removeSearchPath( System s, const TQString &path)
{
if ( !qt_verify_key( path ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::insertSearchPath: Invalid key: '%s'", path.isNull() ? "(null)" : path.latin1() );
+ tqWarning( "TQSettings::insertSearchPath: Invalid key: '%s'", path.isNull() ? "(null)" : path.latin1() );
#endif
return;
}
@@ -985,7 +985,7 @@ bool TQSettings::sync()
if ( filename.isEmpty() ) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::sync: filename is null/empty");
+ tqWarning("TQSettings::sync: filename is null/empty");
#endif // QT_CHECK_STATE
success = FALSE;
@@ -1000,7 +1000,7 @@ bool TQSettings::sync()
if (! file.open(IO_WriteOnly)) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::sync: failed to open '%s' for writing",
+ tqWarning("TQSettings::sync: failed to open '%s' for writing",
file.name().latin1());
#endif // QT_CHECK_STATE
@@ -1041,7 +1041,7 @@ bool TQSettings::sync()
if (file.status() != IO_Ok) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::sync: error at end of write");
+ tqWarning("TQSettings::sync: error at end of write");
#endif // QT_CHECK_STATE
success = FALSE;
@@ -1055,7 +1055,7 @@ bool TQSettings::sync()
!dir.rename( file.name(), filename, TRUE ) ) {
#ifdef QT_CHECK_STATE
- qWarning( "TQSettings::sync: error writing file '%s'",
+ tqWarning( "TQSettings::sync: error writing file '%s'",
TQFile::encodeName( filename ).data() );
#endif // QT_CHECK_STATE
@@ -1096,7 +1096,7 @@ bool TQSettings::readBoolEntry(const TQString &key, bool def, bool *ok )
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::readBoolEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::readBoolEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
if ( ok )
*ok = FALSE;
@@ -1121,7 +1121,7 @@ bool TQSettings::readBoolEntry(const TQString &key, bool def, bool *ok )
return FALSE;
if (! value.isEmpty())
- qWarning("TQSettings::readBoolEntry: '%s' is not 'true' or 'false'",
+ tqWarning("TQSettings::readBoolEntry: '%s' is not 'true' or 'false'",
value.latin1());
if ( ok )
*ok = FALSE;
@@ -1148,7 +1148,7 @@ double TQSettings::readDoubleEntry(const TQString &key, double def, bool *ok )
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::readDoubleEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::readDoubleEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
if ( ok )
*ok = FALSE;
@@ -1167,7 +1167,7 @@ double TQSettings::readDoubleEntry(const TQString &key, double def, bool *ok )
if ( conv_ok )
return retval;
if ( ! value.isEmpty() )
- qWarning( "TQSettings::readDoubleEntry: '%s' is not a number",
+ tqWarning( "TQSettings::readDoubleEntry: '%s' is not a number",
value.latin1() );
if ( ok )
*ok = FALSE;
@@ -1194,7 +1194,7 @@ int TQSettings::readNumEntry(const TQString &key, int def, bool *ok )
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::readNumEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::readNumEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
if ( ok )
*ok = FALSE;
@@ -1212,7 +1212,7 @@ int TQSettings::readNumEntry(const TQString &key, int def, bool *ok )
if ( conv_ok )
return retval;
if ( ! value.isEmpty() )
- qWarning( "TQSettings::readNumEntry: '%s' is not a number",
+ tqWarning( "TQSettings::readNumEntry: '%s' is not a number",
value.latin1() );
if ( ok )
*ok = FALSE;
@@ -1239,7 +1239,7 @@ TQString TQSettings::readEntry(const TQString &key, const TQString &def, bool *o
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::readEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::readEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
if ( ok )
*ok = FALSE;
@@ -1263,7 +1263,7 @@ TQString TQSettings::readEntry(const TQString &key, const TQString &def, bool *o
if (list.count() < 2) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::readEntry: invalid key '%s'", grp_key.latin1());
+ tqWarning("TQSettings::readEntry: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
if ( ok )
*ok = FALSE;
@@ -1321,7 +1321,7 @@ bool TQSettings::writeEntry(const TQString &key, bool value)
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1352,7 +1352,7 @@ bool TQSettings::writeEntry(const TQString &key, double value)
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1382,7 +1382,7 @@ bool TQSettings::writeEntry(const TQString &key, int value)
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1435,7 +1435,7 @@ bool TQSettings::writeEntry(const TQString &key, const TQString &value)
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1454,7 +1454,7 @@ bool TQSettings::writeEntry(const TQString &key, const TQString &value)
if (list.count() < 2) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::writeEntry: invalid key '%s'", grp_key.latin1());
+ tqWarning("TQSettings::writeEntry: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return FALSE;
@@ -1498,7 +1498,7 @@ bool TQSettings::removeEntry(const TQString &key)
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::removeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::removeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1515,7 +1515,7 @@ bool TQSettings::removeEntry(const TQString &key)
if (list.count() < 2) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::removeEntry: invalid key '%s'", grp_key.latin1());
+ tqWarning("TQSettings::removeEntry: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return FALSE;
@@ -1578,7 +1578,7 @@ TQStringList TQSettings::entryList(const TQString &key) const
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::entryList: Invalid key: %s", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::entryList: Invalid key: %s", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return TQStringList();
}
@@ -1595,7 +1595,7 @@ TQStringList TQSettings::entryList(const TQString &key) const
if (list.count() < 1) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::listEntries: invalid key '%s'", grp_key.latin1());
+ tqWarning("TQSettings::listEntries: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return TQStringList();
@@ -1686,7 +1686,7 @@ TQStringList TQSettings::subkeyList(const TQString &key) const
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::subkeyList: Invalid key: %s", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::subkeyList: Invalid key: %s", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return TQStringList();
}
@@ -1704,7 +1704,7 @@ TQStringList TQSettings::subkeyList(const TQString &key) const
if (list.count() < 1) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::subkeyList: invalid key '%s'", grp_key.latin1());
+ tqWarning("TQSettings::subkeyList: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return TQStringList();
@@ -1781,7 +1781,7 @@ TQDateTime TQSettings::lastModificationTime( const TQString &key )
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::lastModificationTime: Invalid key '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::lastModificationTime: Invalid key '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return TQDateTime();
}
@@ -1797,7 +1797,7 @@ TQDateTime TQSettings::lastModificationTime( const TQString &key )
if (list.count() < 2) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::lastModificationTime: Invalid key '%s'", grp_key.latin1());
+ tqWarning("TQSettings::lastModificationTime: Invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return TQDateTime();
@@ -2030,7 +2030,7 @@ void TQSettings::setPath( const TQString &domain, const TQString &product, Scope
if (scope == User)
actualSearchPath = TQDir::homeDirPath() + "/.";
else
- actualSearchPath = TQString(qInstallPathSysconf()) + "/";
+ actualSearchPath = TQString(tqInstallPathSysconf()) + "/";
actualSearchPath += domain.mid( 0, lastDot ) + "/" + product;
insertSearchPath( Unix, actualSearchPath );
#endif