summaryrefslogtreecommitdiffstats
path: root/src/kconf_update/kdev-gen-settings-kconf_update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kconf_update/kdev-gen-settings-kconf_update.cpp')
-rw-r--r--src/kconf_update/kdev-gen-settings-kconf_update.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/kconf_update/kdev-gen-settings-kconf_update.cpp b/src/kconf_update/kdev-gen-settings-kconf_update.cpp
index 1f3c9740..b8da1f60 100644
--- a/src/kconf_update/kdev-gen-settings-kconf_update.cpp
+++ b/src/kconf_update/kdev-gen-settings-kconf_update.cpp
@@ -15,21 +15,21 @@
*************************************************************************
*/
-#include <qmap.h>
-#include <qtextstream.h>
-#include <qregexp.h>
+#include <tqmap.h>
+#include <tqtextstream.h>
+#include <tqregexp.h>
-static QTextStream qcin ( stdin, IO_ReadOnly );
-static QTextStream qcout( stdout, IO_WriteOnly );
-static QTextStream qcerr( stderr, IO_WriteOnly );
+static TQTextStream qcin ( stdin, IO_ReadOnly );
+static TQTextStream qcout( stdout, IO_WriteOnly );
+static TQTextStream qcerr( stderr, IO_WriteOnly );
// Group cache. Yes, I know global vars are ugly :)
bool needFlush = false;
-QString newKeyValue;
+TQString newKeyValue;
int newDataValue;
-void parseKey( const QString &group, const QString &key,
- const QString &value, const QString &rawLine )
+void parseKey( const TQString &group, const TQString &key,
+ const TQString &value, const TQString &rawLine )
{
//qcerr << "*** group='" << group << "'" << endl;
@@ -72,18 +72,18 @@ void parseKey( const QString &group, const QString &key,
int main()
{
- qcin.setEncoding( QTextStream::UnicodeUTF8 );
- qcout.setEncoding( QTextStream::UnicodeUTF8 );
+ qcin.setEncoding( TQTextStream::UnicodeUTF8 );
+ qcout.setEncoding( TQTextStream::UnicodeUTF8 );
- QString curGroup;
+ TQString curGroup;
- QRegExp groupRegExp( "^\\[(.*)\\]" );
- QRegExp keyRegExp( "^([a-zA-Z0-9:, _-]*)\\s*=\\s*(.*)\\s*" );
- QRegExp commentRegExp( "^(#.*)?$" );
+ TQRegExp groupRegExp( "^\\[(.*)\\]" );
+ TQRegExp keyRegExp( "^([a-zA-Z0-9:, _-]*)\\s*=\\s*(.*)\\s*" );
+ TQRegExp commentRegExp( "^(#.*)?$" );
while ( !qcin.atEnd() )
{
- QString line = qcin.readLine();
+ TQString line = qcin.readLine();
if ( commentRegExp.exactMatch( line ) )
{