wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
LabeledSlider.h
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
7
8#pragma once
9
10#include <QSlider>
11
19class LabeledSlider : public QSlider
20{
21 Q_OBJECT
22
23public:
25 explicit LabeledSlider(QWidget *parent = nullptr);
26
27public:
28 // --- Sizing ---
29
31 QSize sizeHint() const override;
33 QSize minimumSizeHint() const override;
34
35protected:
36 // --- Painting ---
37
39 void paintEvent(QPaintEvent *event) override;
40};
void paintEvent(QPaintEvent *event) override
QSize sizeHint() const override
LabeledSlider(QWidget *parent=nullptr)
Constructs the labeled slider with horizontal orientation.
QSize minimumSizeHint() const override