kdk::KSliderFrame(3)

NAME
kdk::KSliderFrame

SYNOPSIS

Inherits kdk::KBaseFrame.

  Public Member Functions

KSliderFrame (QString title, bool hasNode, QWidget *parent=nullptr, BorderRadiusStyle style=BorderRadiusStyle::None, Qt::Orientation orientation=Qt::Horizontal)
创建一个带 KSlider 的 Frame
KSlider * slider ()
获取 m_slider
QLabel * leftLabel ()
获取滑动条左侧label
QLabel * rightLabel ()
获取滑动条右侧label
KLabel * titleLabel ()
获取label
QHBoxLayout * mainHLayout ()
获取layout

Public Member Functions inherited from kdk::KBaseFrame
KBaseFrame (QWidget *parent=nullptr, BorderRadiusStyle style=Around, bool heightAdaptive=false)
构造函数
void setRadiusType (BorderRadiusStyle style)
设置圆角风格
bool getTabletMode ()
获取平板模式
bool isContainer ()
获取是否是一个容器frame，此时settinggroup需要设置的是其子frame的圆角
void setContainer (bool b=false)
设置该frame是否是一个容器frame,如果是同时setFrameShape(NoFrame)；

  Additional Inherited Members

Public Types inherited from kdk::KBaseFrame
enum BorderRadiusStyle { Top, None, Bottom, Around }

Signals inherited from kdk::KBaseFrame
void tabletModeChanged (bool b)

Protected Member Functions inherited from kdk::KBaseFrame
void paintEvent (QPaintEvent *e)

Constructor & Destructor Documentation

  kdk::KSliderFrame::KSliderFrame (QString title, bool hasNode, QWidget * parent = nullptr, BorderRadiusStyle style = BorderRadiusStyle::None, Qt::Orientation orientation = Qt::Horizontal) [explicit]

创建一个带 KSlider 的 Frame

Parameters
    title text of m_settingName
    hasNode 是否带节点
    style 设置圆角（None:无圆角,Top:上圆角,Bottom:下圆角,Around:四圆角）
    parent

Member Function Documentation

  QLabel * kdk::KSliderFrame::leftLabel ()

获取滑动条左侧label

Returns
    QLabel

  QHBoxLayout * kdk::KSliderFrame::mainHLayout ()

获取layout

Returns
    QHBoxLayout

  QLabel * kdk::KSliderFrame::rightLabel ()

获取滑动条右侧label

Returns
    QLabel

  KSlider * kdk::KSliderFrame::slider ()

获取 m_slider

Returns
    KSlider

  KLabel * kdk::KSliderFrame::titleLabel ()

获取label

Returns
    QLabel

Author

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code.