diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-15 01:41:58 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-15 01:41:58 -0600 |
commit | c384c6b991a7e773ac962a2ac8c7bbf7714d6bcf (patch) | |
tree | 1aa114343c6b774319830b0ec30ecc3b32b479bf | |
parent | 09c208d62385d05e3ad23037bd8335b24a590f2d (diff) | |
download | experimental-c384c6b991a7e773ac962a2ac8c7bbf7714d6bcf.tar.gz experimental-c384c6b991a7e773ac962a2ac8c7bbf7714d6bcf.zip |
Fix native TQt3 uic failure with KListView widgets
-rw-r--r-- | qt3-tqt3/tqt3_fixups.diff | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt3-tqt3/tqt3_fixups.diff b/qt3-tqt3/tqt3_fixups.diff index 883bf4a..2063f27 100644 --- a/qt3-tqt3/tqt3_fixups.diff +++ b/qt3-tqt3/tqt3_fixups.diff @@ -118,7 +118,7 @@ diff -ur tools/designer/uic/form.cpp tools/designer/uic/form.cpp forwardDecl += s; - if ( s.mid( 1 ) == "ListBox" || s.mid( 1 ) == "ListView" || s.mid( 1 ) == "IconView" ) - forwardDecl += "Q" + s.mid( 1 ) + "Item"; -+ 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"; @@ -128,7 +128,7 @@ diff -ur tools/designer/uic/form.cpp tools/designer/uic/form.cpp continue; } - if ( name.mid( 1 ) == "ListView" ) -+ 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 ); |