cleanups.
This commit is contained in:
@@ -30,41 +30,22 @@
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef BCSLIDERSTYLE_H
|
||||
#define BCSLIDERSTYLE_H
|
||||
#ifndef BC_VALUESLIDERSTYLE_H
|
||||
#define BC_VALUESLIDERSTYLE_H
|
||||
|
||||
#include <QStyledItemDelegate>
|
||||
#include <QApplication>
|
||||
#include <QWidget>
|
||||
#include <QTableView>
|
||||
#include <QStandardItemModel>
|
||||
#include <QVBoxLayout>
|
||||
#include <QHeaderView>
|
||||
|
||||
#include <QSlider>
|
||||
#include <QPainter>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QWidget>
|
||||
#include <QPushButton>
|
||||
#include <QLineEdit>
|
||||
#include <QSlider>
|
||||
#include <QCheckBox>
|
||||
#include <QVBoxLayout>
|
||||
#include <QHBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QProxyStyle>
|
||||
#include <QPainter>
|
||||
#include <QStyleOptionSlider>
|
||||
#include <QGraphicsDropShadowEffect>
|
||||
|
||||
|
||||
// Fluent Design Slider Style
|
||||
class BCSliderStyle : public QProxyStyle
|
||||
class BCValueSliderStyle : public QProxyStyle
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
BCSliderStyle();
|
||||
BCValueSliderStyle();
|
||||
|
||||
int pixelMetric(PixelMetric metric, const QStyleOption* option = nullptr, const QWidget* widget = nullptr) const override;
|
||||
|
||||
@@ -73,12 +54,12 @@ public:
|
||||
void drawHorizontalFluentSlider(QPainter* painter,
|
||||
const QStyleOptionSlider* slider,
|
||||
const QColor& activeColor,
|
||||
const QColor& inactiveColor,
|
||||
const QColor& bgColor) const;
|
||||
|
||||
static void paintSliderIndicator(QPainter* painter, const QRect& rect, double ratio );
|
||||
static void paintSliderIndicator2(QPainter* painter, const QRect& rect, double ratio );
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif // BCSLIDERSTYLE_H
|
||||
#endif // BC_VALUESLIDERSTYLE_H
|
||||
|
||||
Reference in New Issue
Block a user