Cleanups II.

This commit is contained in:
Christoph Holzheuer
2026-02-10 14:25:06 +01:00
parent afe8588cd3
commit 0ea9ce2e0f
13 changed files with 545 additions and 47 deletions

View File

@@ -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
{
}