From b11ee54855cfc1cec448bf72ee842cb1e48823d4 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: Tue, 11 Feb 2020 08:47:40 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@715 a8b55f48-bf90-11e4-a774-851b48703e85 --- qad/graphic/graphic.cpp | 6 ++++++ qad/graphic/graphic.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/qad/graphic/graphic.cpp b/qad/graphic/graphic.cpp index 8a06b3d..cfd1ad9 100644 --- a/qad/graphic/graphic.cpp +++ b/qad/graphic/graphic.cpp @@ -638,6 +638,12 @@ void Graphic::setHistorySize(double val) { } +void Graphic::setMaxVisibleTime(double val) { + visible_time = val; + if (isFit) on_buttonAutofit_clicked(); +} + + void Graphic::setOnlyExpandY(bool yes) { only_expand_y = yes; ui->checkExpandY->blockSignals(true); diff --git a/qad/graphic/graphic.h b/qad/graphic/graphic.h index f07b306..314a4a0 100644 --- a/qad/graphic/graphic.h +++ b/qad/graphic/graphic.h @@ -265,7 +265,7 @@ public slots: void setButtons(Graphic::Buttons b); void setButtonsPosition(Graphic::Alignment a); void setHistorySize(double val); - void setMaxVisibleTime(double val) {visible_time = val;} + void setMaxVisibleTime(double val); void setAutoXIncrement(double val) {inc_x = val;} void setLimit(const QRectF & val) {limit_ = val;} void setMargins(const QRect & val) {margins_ = val; update();}