diff options
author | Javier <dev.git@javispedro.com> | 2020-04-12 00:45:32 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2020-04-12 01:24:39 +0200 |
commit | 5cb277888995edecfafd83fed4cf2bd510052a4b (patch) | |
tree | 9c94054e59035eece0e34e8be10ee77769b1d9e4 /stfstrokeitem.cc | |
parent | 7f3d796c50b1855e690f74b35fd35798142ceb35 (diff) | |
download | scribiu-5cb277888995edecfafd83fed4cf2bd510052a4b.tar.gz scribiu-5cb277888995edecfafd83fed4cf2bd510052a4b.zip |
port to qt5, libusb 1.0, and openobex 1.7
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 |