diff options
Diffstat (limited to 'tools/designer')
-rw-r--r-- | tools/designer/uic/form.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/designer/uic/form.cpp b/tools/designer/uic/form.cpp index 3102b7b41..7945865d0 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 ); |