diff --git a/qad/touch_widgets/touchbuttframe.cpp b/qad/touch_widgets/touchbuttframe.cpp index 5f5b0fa..b03f401 100644 --- a/qad/touch_widgets/touchbuttframe.cpp +++ b/qad/touch_widgets/touchbuttframe.cpp @@ -48,7 +48,7 @@ void TouchButtFrame::setButtons(const QStringList & captions) { int cur = currentButton(); deleteButtons(); for (int i = 0; i < captions.size(); ++i) - addButton(captions.at(i)); + addButton(QString(captions.at(i)).replace("\\n", "\n")); if (button(cur) != 0) button(cur)->setChecked(true); else if (!captions.isEmpty()) button(0)->setChecked(true); } @@ -72,7 +72,7 @@ int TouchButtFrame::currentButton() { QStringList TouchButtFrame::buttons() { QStringList l; for (int i = 0; i < lay->count(); ++i) - l.append(button(i)->text()); + l.append(button(i)->text().replace("\n", "\\n")); return l; }