File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ bool MythUIGuideGrid::ParseElement(
170170 }
171171 else if (element.tagName () == " multiline" )
172172 {
173- m_multilineText = parseBool (element);
173+ SetMultiLine ( parseBool (element) );
174174 }
175175 else if (element.tagName () == " textoffset" )
176176 {
@@ -680,3 +680,12 @@ void MythUIGuideGrid::SetProgPast(int ppast)
680680
681681 SetRedraw ();
682682}
683+
684+ void MythUIGuideGrid::SetMultiLine (bool multiline)
685+ {
686+ m_multilineText = multiline;
687+ if (m_multilineText)
688+ m_justification |= Qt::TextWordWrap;
689+ else
690+ m_justification &= ~Qt::TextWordWrap;
691+ }
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ class MUI_PUBLIC MythUIGuideGrid : public MythUIType
5050 void ResetData ();
5151 void ResetRow (int row);
5252 void SetProgPast (int ppast);
53+ void SetMultiLine (bool multiline);
5354
5455 protected:
5556 virtual void Finalize (void );
You can’t perform that action at this time.
0 commit comments