2024-09-08 00:34:45 +08:00
|
|
|
// SPDX-FileCopyrightText: 2024 Gary Wang <git@blumia.net>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2020-04-06 15:15:13 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QSlider>
|
|
|
|
#include <QMouseEvent>
|
|
|
|
|
|
|
|
class SeekableSlider : public QSlider
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit SeekableSlider(QWidget *parent = nullptr);
|
2024-09-08 00:34:45 +08:00
|
|
|
~SeekableSlider() = default;
|
2020-04-06 15:15:13 +08:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
protected:
|
2024-09-08 00:34:45 +08:00
|
|
|
void mouseReleaseEvent(QMouseEvent *event) override;
|
2020-04-06 15:15:13 +08:00
|
|
|
};
|
|
|
|
|