diff --git a/tools/designer/uic/form.cpp b/tools/designer/uic/form.cpp index 3102b7b4..7945865d 100644 --- a/tools/designer/uic/form.cpp +++ b/tools/designer/uic/form.cpp @@ -294,7 +294,7 @@ void Uic::createFormDecl( const TQDomElement &e ) s = "TQFrame"; if ( !(nofwd && customWidgets.contains(s)) ) forwardDecl += s; - 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"; @@ -807,7 +807,7 @@ void Uic::createFormImpl( const TQDomElement &e ) globalIncludes += "qapplication.h"; continue; } - 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 );