diff --git a/qt3-tqt3/tqt3_fixups.diff b/qt3-tqt3/tqt3_fixups.diff index 883bf4a..2063f27 100644 --- a/qt3-tqt3/tqt3_fixups.diff +++ b/qt3-tqt3/tqt3_fixups.diff @@ -118,7 +118,7 @@ diff -ur tools/designer/uic/form.cpp tools/designer/uic/form.cpp forwardDecl += s; - if ( s.mid( 1 ) == "ListBox" || s.mid( 1 ) == "ListView" || s.mid( 1 ) == "IconView" ) - forwardDecl += "Q" + s.mid( 1 ) + "Item"; -+ if ( s.mid( 2 ) == "ListBox" || s.mid( 2 ) == "ListView" || s.mid( 2 ) == "IconView" ) ++ if ( (s.mid( 2 ) == "ListBox") || (s.mid( 2 ) == "ListView") || (s.mid( 2 ) == "IconView") ) + forwardDecl += "TQ" + s.mid( 2 ) + "Item"; if ( s == "TQDataTable" ) { // other convenience classes which are used in TQDataTable signals, and thus should be forward-declared by uic for us forwardDecl += "TQSqlRecord"; @@ -128,7 +128,7 @@ diff -ur tools/designer/uic/form.cpp tools/designer/uic/form.cpp continue; } - if ( name.mid( 1 ) == "ListView" ) -+ if ( name.mid( 2 ) == "ListView" ) ++ if (( name.mid( 1 ) == "ListView" ) || ( name.mid( 2 ) == "ListView" )) globalIncludes += "qheader.h"; if ( name != objClass ) { int wid = WidgetDatabase::idFromClassName( name );