From 67cecc7a8d844b4bec2ddc53b486dd9ea2eaab18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Thu, 10 Oct 2019 10:05:20 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@611 a8b55f48-bf90-11e4-a774-851b48703e85 --- qad/touch_widgets/touchbuttframe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }