src/RangedSlider.h

changeset 97
8283bbf95806
parent 96
c36fef8bb088
child 99
053c0578cf58
--- a/src/RangedSlider.h	Thu Mar 31 17:16:44 2022 +0200
+++ b/src/RangedSlider.h	Thu Mar 31 23:10:57 2022 +0200
@@ -48,10 +48,6 @@
 
    //! \brief Set the background brush for the widget.
    void setBackgroundBrush( QBrush const& brush );
-   //! \brief Set the brush for the preffered range.
-   void setPreferredRangeBrush( QBrush const& brush );
-   //! \brief Set the pen for the preferred range
-   void setPreferredRangePen( QPen const& pen );
    //! \brief Set the brush for the marker.
    void setMarkerBrush( QBrush const& brush );
    //! \brief Set the text displayed above the marker.
@@ -59,16 +55,6 @@
    //! \brief If true, the marker text will always be updated to the value given by \c setValue().
    void setMarkerTextIsValue(bool val);
 
-   /*!
-    * \brief Set the tick mark intervals.
-    *
-    * If either parameter is <= 0, then the tick marks are not drawn.
-    *
-    * \param primaryInterval How often to draw big tick marks.
-    * \param secondaryTicks Number of secondary ticks per primary tick.
-    */
-   void setTickMarks( double primaryInterval, int secondaryTicks = 1 );
-
    //! \brief Set the \c precision for displaying values.
    void setPrecision(int precision);
 
@@ -76,33 +62,25 @@
    virtual QSize sizeHint() const;
 
 public slots:
-
-   //! \brief Set the \c value for the indicator.
+   /**
+    * @brief Set the value for the indicator.
+    */
    void setValue(double value);
 
-   /*!
-    * \brief Set the range of values considered to be *best*
+   /**
+    * @brief Set the range of values considered to be *best* and calculate
+    *        the real widget display.
     *
-    * \param range \c range.first and \c range.second are the min and max
-    *        values for the preferred range resp.
-    */
-   void setPreferredRange(QPair<double,double> range);
-
-   /*!
-    * \brief Set the range of values that the widget displays
-    *
-    * \param range \c range.first and \c range.second are the min and max
+    * @param range range.first and range.second are the min and max
     *        values for the preferred range resp.
     */
    void setRange(QPair<double,double> range);
 
-   //! \brief Convenience method for setting the widget range
+   /**
+    * @brief Convenience method for setting the widget range
+    */
    void setRange( double min, double max );
 
-   //! \brief Convenience method for setting the preferred range
-   //         Note that this is completely unrelated to "preferred size".
-   void setPreferredRange( double min, double max );
-
 protected:
    //! \brief Reimplemented from QWidget.
    virtual void paintEvent(QPaintEvent* event);
@@ -138,8 +116,6 @@
    double _val;
    QString _markerText;
    int _prec;
-   double _tickInterval;
-   int _secondaryTicks;
    QString _tooltipText;
    QBrush _bgBrush;
    QBrush _prefRangeBrush;

mercurial