mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #69: Dashed Line not rendered as expected
This commit is contained in:
@ -28,6 +28,7 @@
|
||||
#include "pdftextlayout.h"
|
||||
#include "pdfoperationcontrol.h"
|
||||
|
||||
#include <QVector>
|
||||
#include <QTransform>
|
||||
#include <QPainterPath>
|
||||
#include <QSharedPointer>
|
||||
@ -68,6 +69,11 @@ public:
|
||||
/// Fix line dash pattern according to the specification
|
||||
void fix();
|
||||
|
||||
/// Create dash pattern for QPen.
|
||||
/// \param penWidthF Width of the pen.
|
||||
/// \note Dash pattern in QPen is in pen width units
|
||||
QVector<qreal> createForQPen(qreal penWidthF) const;
|
||||
|
||||
private:
|
||||
std::vector<PDFReal> m_dashArray;
|
||||
PDFReal m_dashOffset = 0.0;
|
||||
|
Reference in New Issue
Block a user