Fix native TQt3 uic failure with KListView widgets

pull/1/head
Timothy Pearson 13 years ago
parent 0f92dd542b
commit 5dea938f81

@ -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 );

Loading…
Cancel
Save