mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
25 lines
410 B
C++
25 lines
410 B
C++
#ifndef VOLUMESLIDER_H
|
|
#define VOLUMESLIDER_H
|
|
|
|
#include <QSlider>
|
|
|
|
class VolumeSlider : public QSlider
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit VolumeSlider(QWidget *parent = 0);
|
|
|
|
void setValue(const int value);
|
|
|
|
protected:
|
|
void mousePressEvent(QMouseEvent *e);
|
|
void mouseMoveEvent(QMouseEvent *e);
|
|
void mouseReleaseEvent(QMouseEvent *e);
|
|
|
|
private:
|
|
bool m_pressed;
|
|
};
|
|
|
|
#endif // VOLUMESLIDER_H
|