cleanups.

This commit is contained in:
Christoph Holzheuer
2026-02-09 16:03:09 +01:00
parent 5a71884cfb
commit 7993247027
27 changed files with 814 additions and 2253 deletions

View File

@@ -30,8 +30,8 @@
***************************************************************************/
#ifndef BCVALUEDELEGATE_H
#define BCVALUEDELEGATE_H
#ifndef BC_VALUEDELEGATE_H
#define BC_VALUEDELEGATE_H
#include <QStyledItemDelegate>
@@ -69,9 +69,8 @@ protected:
void updateRow(int row);
void paintHighlightRow(QPainter* painter, const QStyleOptionViewItem& option, int row) const;
void paintSliderIndicator(QPainter* painter, const QRect &rect, double ratio) const;
void paintButtonIndicator(QPainter* painter, const QStyleOptionViewItem& option, const BCValue& bcValue) const;
void paintToggleSwitch(QPainter* painter, const QStyleOptionViewItem& option, const BCValue& bcValue) const;
void paintSlider(QPainter* painter, const QRect& rect, double ratio ) const;
// Das ist ein Quickhack, der Delegate sollte
// nichts über die Originaldaten wissen. Die
// Datenbeschaffung ist alleine Sache des Models.
@@ -88,4 +87,4 @@ protected:
};
#endif // BCVALUEDELEGATE_H
#endif // BC_VALUEDELEGATE_H