#pragma once /*========================================================================= medInria Copyright (c) INRIA 2013 - 2020. All rights reserved. See LICENSE.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. =========================================================================*/ #include #include #include class MEDCOREGUI_EXPORT medSlider : public QSlider { Q_OBJECT public slots: void addTick(int position); int tickCount(); void removeTick(int position); void removeAllTicks(); protected: void paintEvent(QPaintEvent *event); void mousePressEvent(QMouseEvent *event); /** * @brief getTickColor returns the color of the slider tick according to the application theme * @return QColor */ QColor getTickColor(); private: QList ticksList; };