13#include "kddockwidgets/core/indicators/SegmentedDropIndicatorOverlay.h"
27 , m_controller(controller)
40void SegmentedDropIndicatorOverlay::drawSegments(
QPainter *p)
42 const std::unordered_map<DropLocation, QPolygon> &segments = m_controller->
segments();
47 auto it = segments.find(loc);
48 const Polygon segment = it == segments.cend() ? Polygon() : it->second;
49 drawSegment(p, segment);
53void SegmentedDropIndicatorOverlay::drawSegment(
QPainter *p,
const QPolygon &segment)
void drawPolygon(const QPointF *points, int pointCount, Qt::FillRule fillRule)
void setBrush(const QBrush &brush)
void setPen(const QColor &color)
void setRenderHint(QPainter::RenderHint hint, bool on)
bool containsPoint(const QPoint &point, Qt::FillRule fillRule) const const
bool isEmpty() const const