diff options
Diffstat (limited to 'stfstrokeitem.cc')
-rw-r--r-- | stfstrokeitem.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/stfstrokeitem.cc b/stfstrokeitem.cc index e2a7714..dbc7ca0 100644 --- a/stfstrokeitem.cc +++ b/stfstrokeitem.cc @@ -19,8 +19,8 @@ #include <QtCore/QDebug> #include <QtGui/QPen> #include <QtGui/QCursor> -#include <QtGui/QGraphicsScene> -#include <QtGui/QGraphicsSceneMouseEvent> +#include <QtWidgets/QGraphicsScene> +#include <QtWidgets/QGraphicsSceneMouseEvent> #include "notebookview.h" #include "stfstrokeitem.h" @@ -28,10 +28,12 @@ StfStrokeItem::StfStrokeItem(const QPainterPath &stroke, const PaperReplay::Sess : QGraphicsPathItem(stroke, parent), _session(session), _startTime(startTime), _endTime(endTime) { + QPen pen(Qt::black, 8.0f); if (_session.isValid()) { - setPen(QPen(Qt::darkGreen)); + pen.setColor(Qt::darkGreen); setCursor(Qt::PointingHandCursor); } + setPen(pen); } int StfStrokeItem::type() const |