Manually drawing DIP widget pin labels

This commit is contained in:
Nav
2021-11-20 19:08:35 +00:00
parent 621ab0ca2a
commit 69212059f9
7 changed files with 214 additions and 124 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <QWidget>
#include <QPainter>
namespace Bloom::Widgets::InsightTargetWidgets::Dip
{
@@ -11,9 +12,9 @@ namespace Bloom::Widgets::InsightTargetWidgets::Dip
Q_PROPERTY(int disableAlphaLevel READ getDisableAlphaLevel WRITE setDisableAlphaLevel DESIGNABLE true)
public:
explicit BodyWidget(QWidget* parent): QWidget(parent) {
this->setObjectName("target-body");
}
static constexpr int HEIGHT = 130;
explicit BodyWidget(QWidget* parent);
[[nodiscard]] QColor getBodyColor() const {
return this->bodyColor;