From 9d7aabbe6fe279070f8d978b58d2f443b2cb61a6 Mon Sep 17 00:00:00 2001 From: "markummitchell@gmail.com" Date: Thu, 28 Nov 2019 16:34:04 -0800 Subject: [PATCH] Fix for autorepeat in Segments Settings dialog for #362 --- src/Dlg/DlgSettingsSegments.cpp | 5 ++++- src/util/LinearToLog.cpp | 6 ++++++ src/util/LinearToLog.h | 6 ++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Dlg/DlgSettingsSegments.cpp b/src/Dlg/DlgSettingsSegments.cpp index 093b315e..5f6a23ca 100644 --- a/src/Dlg/DlgSettingsSegments.cpp +++ b/src/Dlg/DlgSettingsSegments.cpp @@ -355,6 +355,7 @@ void DlgSettingsSegments::updatePreview() const QColor COLOR (Qt::blue); const int RADIUS = 5; GeometryWindow *NULL_GEOMETRY_WINDOW = nullptr; + const bool NO_DIALOG = false; // If true then dueling modal dialogs will trigger infinite loops in QSpinBox up/down if (!m_loading) { @@ -367,7 +368,8 @@ void DlgSettingsSegments::updatePreview() // Create new segments segmentFactory.makeSegments (createPreviewImage(), *m_modelSegmentsAfter, - m_segments); + m_segments, + NO_DIALOG); // Make the segment visible QList::iterator itrS; @@ -384,6 +386,7 @@ void DlgSettingsSegments::updatePreview() QPolygonF polygon = pointStyle.polygon(); QList points = segmentFactory.fillPoints (*m_modelSegmentsAfter, m_segments); + QList::iterator itrP; for (itrP = points.begin(); itrP != points.end(); itrP++) { QPoint pos = *itrP; diff --git a/src/util/LinearToLog.cpp b/src/util/LinearToLog.cpp index 83547408..f7953ed8 100644 --- a/src/util/LinearToLog.cpp +++ b/src/util/LinearToLog.cpp @@ -1,3 +1,9 @@ +/****************************************************************************************************** + * (C) 2016 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * + * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * + * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * + ******************************************************************************************************/ + #include "LinearToLog.h" #include diff --git a/src/util/LinearToLog.h b/src/util/LinearToLog.h index 6c1f6915..5af74a4b 100644 --- a/src/util/LinearToLog.h +++ b/src/util/LinearToLog.h @@ -1,3 +1,9 @@ +/****************************************************************************************************** + * (C) 2016 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * + * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * + * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * + ******************************************************************************************************/ + #ifndef LINEAR_TO_LOG_H #define LINEAR_TO_LOG_H