From 5dea938f814eff53a106e572c98620ecd0043bd9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 15 Nov 2011 01:41:59 -0600 Subject: Fix native TQt3 uic failure with KListView widgets --- tools/designer/uic/form.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/designer/uic') 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 ); -- cgit v1.2.1