summaryrefslogtreecommitdiffstats
path: root/src/tools/uic3/main.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-03-26 13:09:26 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-03-26 13:09:26 (GMT)
commitc7d39e1335775979d43833d0b7f6c32cef898424 (patch)
treef19716b0a3b29ebf91457586d5323fd6c77f1a23 /src/tools/uic3/main.cpp
parent4fb6cae4dd0c6a90008780df606abb8a9e73cb2c (diff)
downloadQt-c7d39e1335775979d43833d0b7f6c32cef898424.zip
Qt-c7d39e1335775979d43833d0b7f6c32cef898424.tar.gz
Qt-c7d39e1335775979d43833d0b7f6c32cef898424.tar.bz2
uic3: -extract: Write XPM-images correctly.
Add magic header '/* XPM */' and turn off wrapping of lines that broke image readers. Add a command line option to activate line-wrapping in case someone exclusively wants to use the extracted images for embedding in code. Also do line-wrapping in case images are embedded into the ui-file. Note: The current versions of MSVC do not seem to have a limitation of line lengths any more. Task-number: QTBUG-9207 Reviewed-by: Jarek Kobus <jkobus@trolltech.com>
Diffstat (limited to 'src/tools/uic3/main.cpp')
-rw-r--r--src/tools/uic3/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/uic3/main.cpp b/src/tools/uic3/main.cpp
index 1ebb76a..d7657b1 100644
--- a/src/tools/uic3/main.cpp
+++ b/src/tools/uic3/main.cpp
@@ -149,6 +149,8 @@ int runUic3(int argc, char * argv[])
readerOptions &= ~Ui3Reader::CustomWidgetForwardDeclarations;
} else if (opt == "layout-names") {
readerOptions |= Ui3Reader::PreserveLayoutNames;
+ } else if (opt == "limit-xpm-linelength") {
+ readerOptions |= Ui3Reader::LimitXPM_LineLength;
} else if (opt == "nounload") {
// skip
} else if (opt == "convert") {
@@ -251,6 +253,7 @@ int runUic3(int argc, char * argv[])
"Options:\n"
"\t-o file Write output to file rather than stdout\n"
"\t-extract qrcFile Create resource file and extract embedded images into \"image\" dir\n"
+ "\t-limit-xpm-linelength Limit the line length of XPM files for -extract.\n"
"\t-pch file Add #include \"file\" as the first statement in implementation\n"
"\t-nofwd Omit forward declarations of custom classes\n"
"\t-layout-names Preserve layout names of Qt Designer 3\n"