This commit is contained in:
Thomas Wilshaw
2021-10-22 22:15:50 +01:00
parent 3ff59544b2
commit e0a20a278e
4 changed files with 2 additions and 35 deletions
+1 -7
View File
@@ -53,10 +53,6 @@ void Marker::paintEvent(QPaintEvent *event)
int x = half_width; //3
if (x + half_width < 0 || x - half_width > width()) {
return;
}
QPainter p(this);
p.setPen(Qt::black);
p.setBrush(ColorCoding::GetColor(marker_color_).toQColor());
@@ -75,8 +71,6 @@ void Marker::paintEvent(QPaintEvent *event)
};
p.drawPolygon(points, 6);
p.setRenderHint(QPainter::Antialiasing, false);
}
void Marker::ShowContextMenu() {
@@ -97,4 +91,4 @@ void Marker::SetColor(int c)
update();
}
} // namespace olive
} // namespace olive