Cleanups II.
This commit is contained in:
@@ -133,9 +133,9 @@ void BCValueDelegate::paint(QPainter *painter, const QStyleOptionViewItem& optio
|
||||
{
|
||||
// Wir zeichnen boolean Values an toggle switches
|
||||
if( bcValue.valueType() == BCValue::ValueType::Bool )
|
||||
paintToggleSwitch(painter, option, bcValue);
|
||||
paintPlainToggleSwitch(painter, option, bcValue);
|
||||
else
|
||||
paintSlider(painter, option.rect, bcValue.calcMinMaxRatio() );
|
||||
paintPlainSliderIndicator(painter, option.rect, bcValue.calcMinMaxRatio() );
|
||||
}
|
||||
|
||||
if(_rowOpacities.contains(row))
|
||||
@@ -143,10 +143,11 @@ void BCValueDelegate::paint(QPainter *painter, const QStyleOptionViewItem& optio
|
||||
|
||||
}
|
||||
|
||||
void BCValueDelegate::paintSlider(QPainter* painter, const QRect& rect, double ratio )const
|
||||
void BCValueDelegate::paintPlainSliderIndicator(QPainter* painter, const QRect& rect, double ratio )const
|
||||
{
|
||||
QRect sliderRect = BCValueSlider::updateEditorRect( rect );
|
||||
BCValueSliderStyle::paintSliderIndicator2(painter, sliderRect, ratio );
|
||||
qDebug() << " --- Paint SLIDER ";
|
||||
BCValueSlider::paintSliderIndicator2(painter, sliderRect, ratio );
|
||||
}
|
||||
|
||||
void BCValueDelegate::paintHighlightRow(QPainter* painter, const QStyleOptionViewItem& option, int row) const
|
||||
@@ -185,7 +186,7 @@ void BCValueDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionVi
|
||||
editor->setGeometry(sliderRect); // Slider nur über Progress Bar
|
||||
}
|
||||
|
||||
void BCValueDelegate::paintToggleSwitch(QPainter* painter, const QStyleOptionViewItem& option, const BCValue& bcValue) const
|
||||
void BCValueDelegate::paintPlainToggleSwitch(QPainter* painter, const QStyleOptionViewItem& option, const BCValue& bcValue) const
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user