Opened 18 years ago
#46 new defect
Line breaks missing in some QLabels
| Reported by: | rudi | Owned by: | dmik | 
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | designer | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | 
Description
I have a .ui file here (don't know who created it), that uses a single carriage return as end-of-line terminator. This causes UIC to remove line breaks from multi-line text labels. Suggested fix:
Change lines 75 and 76 in uic.cpp from:
s.replace( "\r", "" );
s.replace( "\n", "
n\"\n\"" );
to:
s.replace( "\r\n", "\n" );
s.replace( "\n", "
n\"\n\"" );
s.replace( "\r", "
n\"\n\"" );
This should make line breaks in multi lined labels independent of the EOL char.
  Note:
 See   TracTickets
 for help on using tickets.
    