Changeset View
Changeset View
Standalone View
Standalone View
phonon/swiftslider_p.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 51 | public: | |||
---|---|---|---|---|---|
52 | SwiftSlider(Qt::Orientation orientation, QWidget * parent); | 52 | SwiftSlider(Qt::Orientation orientation, QWidget * parent); | ||
53 | ~SwiftSlider(); | 53 | ~SwiftSlider(); | ||
54 | 54 | | |||
55 | signals: | 55 | signals: | ||
56 | void scrollStart(); | 56 | void scrollStart(); | ||
57 | void scrollEnd(); | 57 | void scrollEnd(); | ||
58 | 58 | | |||
59 | private: | 59 | private: | ||
60 | void mousePressEvent(QMouseEvent *event); | 60 | void mousePressEvent(QMouseEvent *event) override; | ||
61 | void wheelEvent(QWheelEvent *event); | 61 | void wheelEvent(QWheelEvent *event) override; | ||
62 | inline int pick(const QPoint &pt) const; | 62 | inline int pick(const QPoint &pt) const; | ||
63 | int pixelPosToRangeValue(int pos) const; | 63 | int pixelPosToRangeValue(int pos) const; | ||
64 | 64 | | |||
65 | QTimer m_wheelTimer; | 65 | QTimer m_wheelTimer; | ||
66 | }; | 66 | }; | ||
67 | 67 | | |||
68 | } // namespace Phonon | 68 | } // namespace Phonon | ||
69 | 69 | | |||
70 | #endif //QT_NO_PHONON_VOLUMESLIDER && QT_NO_PHONON_VOLUMESLIDER | 70 | #endif //QT_NO_PHONON_VOLUMESLIDER && QT_NO_PHONON_VOLUMESLIDER | ||
71 | 71 | | |||
72 | #endif //SWIFTSLIDER_H | 72 | #endif //SWIFTSLIDER_H |