# HG changeset patch # User Chris Cannam # Date 1569401180 -3600 # Node ID 235e08aa2d5d86c9ffb7c975e4179e3a4f2b9530 # Parent 2e94c268f7a04996fa0fc36c5519f7e238491e0f Make getTopLayerDisplayExtents public (ugh) for use when setting up a new empty layer with auto-align over the top of another one diff -r 2e94c268f7a0 -r 235e08aa2d5d view/Pane.h --- a/view/Pane.h Wed Sep 25 09:45:42 2019 +0100 +++ b/view/Pane.h Wed Sep 25 09:46:20 2019 +0100 @@ -106,6 +106,10 @@ void mouseEnteredWidget(); void mouseLeftWidget(); + bool getTopLayerDisplayExtents(double &valueMin, double &valueMax, + double &displayMin, double &displayMax, + QString *unit = 0); + protected slots: void playbackScheduleTimerElapsed(); @@ -149,9 +153,6 @@ void updateVerticalPanner(); bool canTopLayerMoveVertical(); - bool getTopLayerDisplayExtents(double &valueMin, double &valueMax, - double &displayMin, double &displayMax, - QString *unit = 0); bool setTopLayerDisplayExtents(double displayMin, double displayMax); void dragTopLayer(QMouseEvent *e);