diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-24 12:21:55 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-24 12:21:55 -0500 |
commit | 7bb4259779332cc76ed4a2d05e1c8bcb1c5ab9d7 (patch) | |
tree | b58a89bd3b7ce598b717df2fae78bdf86a4afb7e /qt3-tqt3/tqt3_fixups.diff | |
parent | 25e53f98b74b3c9a8c5ef57146d8e6d43c9ebde3 (diff) | |
download | experimental-7bb4259779332cc76ed4a2d05e1c8bcb1c5ab9d7.tar.gz experimental-7bb4259779332cc76ed4a2d05e1c8bcb1c5ab9d7.zip |
Add scripts to autogenerate a "real" TQt3 from the Qt3 sources in GIT
Diffstat (limited to 'qt3-tqt3/tqt3_fixups.diff')
-rw-r--r-- | qt3-tqt3/tqt3_fixups.diff | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/qt3-tqt3/tqt3_fixups.diff b/qt3-tqt3/tqt3_fixups.diff new file mode 100644 index 0000000..2f12550 --- /dev/null +++ b/qt3-tqt3/tqt3_fixups.diff @@ -0,0 +1,28 @@ +diff -ur src/moc/moc.y src/moc/moc.y +--- src/moc/moc.y 2011-08-23 02:50:57.000000000 -0500 ++++ src/moc/moc.y 2011-08-24 01:46:17.000000000 -0500 +@@ -3422,8 +3422,8 @@ + else if ( type == "Q_ULLONG" ) + fprintf( out, "v->asULongLong()" ); + else if ( isVariantType( type ) ) { +- if ( type[0] == 'Q' ) +- type = type.mid(1); ++ if (( type[0] == 'T' ) && ( type[1] == 'Q' )) ++ type = type.mid(2); + else + type[0] = toupper( type[0] ); + fprintf( out, "v->as%s()", type.data() ); +diff -ur src/moc/moc_yacc.cpp src/moc/moc_yacc.cpp +--- src/moc/moc_yacc.cpp 2011-08-23 02:03:46.000000000 -0500 ++++ src/moc/moc_yacc.cpp 2011-08-24 01:46:45.000000000 -0500 +@@ -3462,8 +3462,8 @@ + else if ( type == "Q_ULLONG" ) + fprintf( out, "v->asULongLong()" ); + else if ( isVariantType( type ) ) { +- if ( type[0] == 'Q' ) +- type = type.mid(1); ++ if (( type[0] == 'T' ) && ( type[1] == 'Q' )) ++ type = type.mid(2); + else + type[0] = toupper( type[0] ); + fprintf( out, "v->as%s()", type.data() ); |