DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dslider_p.h
1// SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DSLIDER_P_H
6#define DSLIDER_P_H
7
8#include <DSlider>
9
10#include <DObjectPrivate>
11#include <DIconButton>
12#include <DFloatingWidget>
13#include <DLabel>
14
15#include <QLayout>
16
17DWIDGET_BEGIN_NAMESPACE
18
19class SliderStrip;
20class DSliderPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
21{
22 Q_DECLARE_PUBLIC(DSlider)
23
24public:
26
27 void init();
28
29public:
30 SpecialSlider *slider;
31 bool handleVisible;
32 Qt::Orientation orientation = Qt::Horizontal;
33 QSlider::TickPosition aleDirection = QSlider::NoTicks;
34
35 DIconButton *leftIcon;
36 DIconButton *rightIcon;
37
38 SliderStrip *left;
39 SliderStrip *right;
40
41 QGridLayout *layout;
42 DFloatingWidget *tipvalue;
43 DLabel *label;
44
45 QSize iconSize;
46 bool mouseWheelEnabled;
47
48 void updtateTool(int value);
49};
50
51DWIDGET_END_NAMESPACE
52
53#endif // DSLIDER_P_H
Definition dfloatingwidget.h:19
按钮的图标
Definition diconbutton.h:24
DLabel一个重新实现的 QLabel。
Definition dlabel.h:18
Definition dslider_p.h:21
DSlider一个聚合 QSlider 的滑块,DSlider提供了在滑块两侧设置图标函数,且设置的滑块更加美观
Definition dslider.h:20
Definition dslider.cpp:20
Definition dslider.h:91