summaryrefslogtreecommitdiffstats
path: root/qt3-tqt3
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-15 01:41:58 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-15 01:41:58 -0600
commitc384c6b991a7e773ac962a2ac8c7bbf7714d6bcf (patch)
tree1aa114343c6b774319830b0ec30ecc3b32b479bf /qt3-tqt3
parent09c208d62385d05e3ad23037bd8335b24a590f2d (diff)
downloadexperimental-c384c6b991a7e773ac962a2ac8c7bbf7714d6bcf.tar.gz
experimental-c384c6b991a7e773ac962a2ac8c7bbf7714d6bcf.zip
Fix native TQt3 uic failure with KListView widgets
Diffstat (limited to 'qt3-tqt3')
-rw-r--r--qt3-tqt3/tqt3_fixups.diff4
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 );