From 3202a5f85db700e25c091886a87938e679138d6b Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Tue, 23 Jun 2020 15:36:01 +0200 Subject: [PATCH] Make plotZoomed a RiuQwtPlotWidget signal and not just in a couple of sub classes --- ApplicationCode/UserInterface/RiuGridCrossQwtPlot.h | 3 --- ApplicationCode/UserInterface/RiuQwtPlotWidget.h | 1 + ApplicationCode/UserInterface/RiuSummaryQwtPlot.h | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/ApplicationCode/UserInterface/RiuGridCrossQwtPlot.h b/ApplicationCode/UserInterface/RiuGridCrossQwtPlot.h index 50a5e3081c..4a2a9ecbda 100644 --- a/ApplicationCode/UserInterface/RiuGridCrossQwtPlot.h +++ b/ApplicationCode/UserInterface/RiuGridCrossQwtPlot.h @@ -61,9 +61,6 @@ public: void setLegendFontSize( int fontSize ); void setInternalQwtLegendVisible( bool visible ); -signals: - void plotZoomed(); - protected: void contextMenuEvent( QContextMenuEvent* ) override; diff --git a/ApplicationCode/UserInterface/RiuQwtPlotWidget.h b/ApplicationCode/UserInterface/RiuQwtPlotWidget.h index 88ffbc2d0e..4dfc18059b 100644 --- a/ApplicationCode/UserInterface/RiuQwtPlotWidget.h +++ b/ApplicationCode/UserInterface/RiuQwtPlotWidget.h @@ -143,6 +143,7 @@ signals: void plotItemSelected( QwtPlotItem* plotItem, bool toggleSelection, int sampleIndex ); void onKeyPressEvent( QKeyEvent* event ); void onWheelEvent( QWheelEvent* event ); + void plotZoomed(); protected: bool eventFilter( QObject* watched, QEvent* event ) override; diff --git a/ApplicationCode/UserInterface/RiuSummaryQwtPlot.h b/ApplicationCode/UserInterface/RiuSummaryQwtPlot.h index afecf7b4d5..fee7499304 100644 --- a/ApplicationCode/UserInterface/RiuSummaryQwtPlot.h +++ b/ApplicationCode/UserInterface/RiuSummaryQwtPlot.h @@ -54,9 +54,6 @@ public: void useTimeBasedTimeAxis(); void setAxisIsLogarithmic( QwtPlot::Axis axis, bool logarithmic ); -signals: - void plotZoomed(); - protected: void contextMenuEvent( QContextMenuEvent* ) override; void setDefaults();