diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-15 01:41:59 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-15 01:41:59 -0600 |
commit | 5dea938f814eff53a106e572c98620ecd0043bd9 (patch) | |
tree | b1cd2a93c9d9af252c4f88932e3632d20ef955e9 /tools | |
parent | 0f92dd542b65bc910caaf190b7c623aa5158c86a (diff) | |
download | tqt3-5dea938f814eff53a106e572c98620ecd0043bd9.tar.gz tqt3-5dea938f814eff53a106e572c98620ecd0043bd9.zip |
Fix native TQt3 uic failure with KListView widgets
Diffstat (limited to 'tools')
-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 ); |