qskinny/examples/gallery/slider/CustomSlider.h
2020-08-11 17:56:53 +02:00

27 lines
673 B
C++

/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef CUSTOM_SLIDER_H
#define CUSTOM_SLIDER_H
#include <QskSlider.h>
class CustomSlider : public QskSlider
{
using Inherited = QskSlider;
public:
QSK_SUBCONTROLS( Scale, Decoration )
CustomSlider( QQuickItem* parent = nullptr );
QRectF focusIndicatorRect() const override;
protected:
QSizeF contentsSizeHint( Qt::SizeHint, const QSizeF& ) const override;
};
#endif