Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 917030 Details for
Bug 1118240
puic4 is broken: fix provided
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fixes partially 'puic4 -x' generated code
perlqt4_uic.patch (text/plain), 6.17 KB, created by
Olivier LAHAYE
on 2014-07-10 09:35:55 UTC
(
hide
)
Description:
Fixes partially 'puic4 -x' generated code
Filename:
MIME Type:
Creator:
Olivier LAHAYE
Created:
2014-07-10 09:35:55 UTC
Size:
6.17 KB
patch
obsolete
>--- Qt-0.96.0.orig/qtcore/tools/puic/uic.cpp 2014-07-08 11:01:21.018712577 +0200 >+++ Qt-0.96.0/qtcore/tools/puic/uic.cpp 2014-07-09 10:48:08.816505995 +0200 >@@ -139,34 +139,34 @@ > { > QString comment = ui->elementComment(); > if ( this->option().generator == Option::PerlGenerator ) { >- comment.insert( 0, "# " ); >- comment.replace( QRegExp("\n"), "\n# " ); >- if (comment.size()) >- out << "###############################################################################\n" >+ if (comment.size()) { >+ comment.insert( 0, "# " ); >+ comment.replace( QRegExp("\n"), "\n# " ); >+ out << "################################################################################\n" > << comment >- << "\n###############################################################################\n\n"; >+ << "\n################################################################################\n\n"; >+ } > >- out << "#################################################################################\n"; >- out << "## Form generated from reading UI file '" << QFileInfo(opt.inputFile).fileName() << "'\n"; >- out << "##\n"; >- out << "## Created: " << QDateTime::currentDateTime().toString() << "\n"; >- out << "## " << QString::fromLatin1("by: Qt User Interface Compiler version %1\n").arg(QLatin1String(QT_VERSION_STR)); >- out << "##\n"; >- out << "## WARNING! All changes made in this file will be lost when recompiling UI file!\n"; >- out << "################################################################################\n\n"; >- } >- else { >+ out << "################################################################################\n"; >+ out << "## Form generated from reading UI file '" << QFileInfo(opt.inputFile).fileName() << "'\n"; >+ out << "##\n"; >+ out << "## Created: " << QDateTime::currentDateTime().toString() << "\n"; >+ out << "## " << QString::fromLatin1("by: Qt User Interface Compiler version %1\n").arg(QLatin1String(QT_VERSION_STR)); >+ out << "##\n"; >+ out << "## WARNING! All changes made in this file will be lost when recompiling UI file!\n"; >+ out << "################################################################################\n\n"; >+ } else { > if (comment.size()) > out << "/*\n" << comment << "\n*/\n\n"; > >- out << "/********************************************************************************\n"; >- out << "** Form generated from reading UI file '" << QFileInfo(opt.inputFile).fileName() << "'\n"; >- out << "**\n"; >- out << "** Created: " << QDateTime::currentDateTime().toString() << "\n"; >- out << "** " << QString::fromLatin1("by: Qt User Interface Compiler version %1\n").arg(QLatin1String(QT_VERSION_STR)); >- out << "**\n"; >- out << "** WARNING! All changes made in this file will be lost when recompiling UI file!\n"; >- out << "********************************************************************************/\n\n"; >+ out << "/********************************************************************************\n"; >+ out << "** Form generated from reading UI file '" << QFileInfo(opt.inputFile).fileName() << "'\n"; >+ out << "**\n"; >+ out << "** Created: " << QDateTime::currentDateTime().toString() << "\n"; >+ out << "** " << QString::fromLatin1("by: Qt User Interface Compiler version %1\n").arg(QLatin1String(QT_VERSION_STR)); >+ out << "**\n"; >+ out << "** WARNING! All changes made in this file will be lost when recompiling UI file!\n"; >+ out << "********************************************************************************/\n\n"; > } > } > >@@ -385,28 +385,28 @@ > > if (option().useKDE) { > out << "\n\nsub main {" << endl; >- out << option().indent << "my $about = KDE::AboutData(\"" << className.toLower() << "\", \"" << className << "\", KDE.ki18n(\"\"), \"0.1\")" << endl; >- out << option().indent << "KDE::CmdLineArgs.init(\\@ARGV, $about)" << endl; >- out << option().indent << "my $a = KDE::Application" << endl; >+ out << option().indent << "my $about = KDE::AboutData(\"" << className.toLower() << "\", \"" << className << "\", KDE.ki18n(\"\"), \"0.1\");" << endl; >+ out << option().indent << "KDE::CmdLineArgs.init(\\@ARGV, $about);" << endl; >+ out << option().indent << "my $a = KDE::Application;" << endl; > parentClass.replace(QRegExp("^Q"), "Qt::"); > parentClass.replace(QRegExp("^K"), "KDE::"); >- out << option().indent << "my $w = " << parentClass << endl; >- out << option().indent << option().prefix << className << "setupUi($w)" << endl; >- out << option().indent << "$a->topWidget = $w" << endl; >- out << option().indent << "$w->show()" << endl; >- out << option().indent << "$a->exec()" << endl; >+ out << option().indent << "my $w = " << parentClass << ";" << endl; >+ out << option().indent << option().prefix << className << "setupUi($w);" << endl; >+ out << option().indent << "$a->topWidget = $w;" << endl; >+ out << option().indent << "$w->show();" << endl; >+ out << option().indent << "$a->exec();" << endl; > out << "}" << endl; >- out << "exit main()" << endl; >+ out << "exit main();" << endl; > } else { > out << "\n\nsub main {" << endl; >- out << option().indent << "my $a = Qt::Application(\\@ARGV)" << endl; >+ out << option().indent << "my $a = Qt::Application(\\@ARGV);" << endl; > parentClass.replace(QRegExp("^Q"), "Qt::"); >- out << option().indent << "my $w = " << parentClass << endl; >- out << option().indent << "my $u = " << option().prefix << className << endl; >- out << option().indent << "$w->show()" << endl; >- out << option().indent << "$a->exec()" << endl; >+ out << option().indent << "my $w = " << parentClass << ";" << endl; >+ out << option().indent << "my $u = " << option().prefix << className << ";" << endl; >+ out << option().indent << "$w->show();" << endl; >+ out << option().indent << "$a->exec();" << endl; > out << "}" << endl; >- out << "exit main()" << endl; >+ out << "exit main();" << endl; > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1118240
:
917029
| 917030