diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
commit | bab40890696ec68c337dc290880423a0602b83c7 (patch) | |
tree | 6ba03f720b1fa88235ba339e7aedb4455430357e /kdeprint/fooparser.y | |
parent | f7e71d47719ab6094cf4a9fafffa5ea351973522 (diff) | |
download | tdelibs-bab40890696ec68c337dc290880423a0602b83c7.tar.gz tdelibs-bab40890696ec68c337dc290880423a0602b83c7.zip |
Finished remaining porting to new TQt API
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/fooparser.y')
-rw-r--r-- | kdeprint/fooparser.y | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kdeprint/fooparser.y b/kdeprint/fooparser.y index a6a119ccb..1aaa4cf75 100644 --- a/kdeprint/fooparser.y +++ b/kdeprint/fooparser.y @@ -18,12 +18,12 @@ * Boston, MA 02110-1301, USA. **/ -#define YYSTYPE QVariant +#define YYSTYPE TQVariant #define YYPARSE_PARAM fooloader #define YYDEBUG 1 #include <stdlib.h> -#include <qvariant.h> +#include <tqvariant.h> #include "foomatic2loader.h" void yyerror(const char*) {} @@ -48,7 +48,7 @@ foodata: VAR '=' '{' fieldlist '}' ';' { static_cast<Foomatic2Loader*>(fooloa ; fieldlist: assignment { $$ = $1; } - | fieldlist ',' assignment { QMap<QString,QVariant>::ConstIterator it = $3.mapBegin(); $1.asMap().insert(it.key(), it.data()); $$ = $1; } + | fieldlist ',' assignment { TQMap<TQString,TQVariant>::ConstIterator it = $3.mapBegin(); $1.asMap().insert(it.key(), it.data()); $$ = $1; } ; assignment: STRING '=' '>' value { $$.asMap().insert($1.toString(), $4); } @@ -58,13 +58,13 @@ valuelist: value { $$.asList().append($1); } | valuelist ',' value { $1.asList().append($3); $$ = $1; } ; -value: UNDEF { $$ = QVariant(); } +value: UNDEF { $$ = TQVariant(); } | STRING { $$ = $1; } | NUMBER { $$ = $1; } | '[' valuelist ']' { $$ = $2; } | '{' fieldlist '}' { $$ = $2; } - | '[' ']' { $$ = QVariant(); } - | '{' '}' { $$ = QVariant(); } + | '[' ']' { $$ = TQVariant(); } + | '{' '}' { $$ = TQVariant(); } ; %% |