chrisburel / perlqt4

Automatically exported from code.google.com/p/perlqt4
Other
0 stars 0 forks source link

puic4 generates invalid code for QTableWidget #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. puic4 form.ui -o Ui_Form.pm
2. perl -c Ui_Form.pm

What is the expected output? What do you see instead?
Expected output - code should compile without errors.
Received output - compile errors:

Variable "$tableWidget" is not imported at Ui_Form.pm line 48.
        (Did you mean &tableWidget instead?)
Scalar found where operator expected at Ui_Form.pm line 49, near "$tableWidget"
        (Missing semicolon on previous line?)
Variable "$tableWidget" is not imported at Ui_Form.pm line 49.
        (Did you mean &tableWidget instead?)
Bareword found where operator expected at Ui_Form.pm line 50, near "end"
        (Missing semicolon on previous line?)
Variable "$tableWidget" is not imported at Ui_Form.pm line 54.
        (Did you mean &tableWidget instead?)
Variable "$tableWidget" is not imported at Ui_Form.pm line 58.
        (Did you mean &tableWidget instead?)
syntax error at Ui_Form.pm line 48, near "if $tableWidget"
Global symbol "$tableWidget" requires explicit package name at Ui_Form.pm line 
48.
Global symbol "$tableWidget" requires explicit package name at Ui_Form.pm line 
49.
Global symbol "$tableWidget" requires explicit package name at Ui_Form.pm line 
54.
Global symbol "$tableWidget" requires explicit package name at Ui_Form.pm line 
58.
Ui_Form.pm had compilation errors.

What version of PerlQt4 are you using? What version of Qt are you using? On
what operating system?

Kde bindings: 4.6.2
Qt version: 4.7.2
Operating system: GNU/Linux, Gentoo

Please provide any additional information below.
I have attached sample form.ui file.

Original issue reported on code.google.com by szy...@adres.pl on 18 May 2011 at 4:34

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by chrisbu...@gmail.com on 1 Jun 2011 at 3:32

GoogleCodeExporter commented 9 years ago
I've pushed the fix to the git repo.  Here's the patch as well.

Original comment by chrisbu...@gmail.com on 2 Jun 2011 at 6:20

Attachments: