- 02 Oct, 2018 1 commit
-
-
Clément Fauconnier authored
-
- 06 Dec, 2017 1 commit
-
-
Clément Fauconnier authored
-
- 24 Sep, 2017 1 commit
-
-
Clément Fauconnier authored
-
- 06 Nov, 2016 1 commit
-
-
Craig Watson authored
Up until now, the fill rule of a polygon was always saved as even-odd, despite the fact that in most if not all cases, polygons are drawn with winding fill within OpenBoard. Saving is now fixed, but there is no way to know upon loading whether the polygon was correctly saved or whether; so for now, we just set the fill rule to Winding when loading a polygon.
-
- 15 Oct, 2016 1 commit
-
-
Craig Watson authored
If enabled in the preferences menu, pen and marker strokes will be replaced by a simplified stroke after they are drawn. The algorithm is very basic (for now): if three points are almost lined up (the threshold angle can be specified in the config file), then the middle one is removed. This is repeated over the whole stroke; new polygons are then generated based on the simplified stroke points. This typically cuts down on number of points and polygons by a factor of about 10, while having minimal visual impact.
-
- 09 Oct, 2016 1 commit
-
-
Craig Watson authored
Due to antialiasing, adjacent polygons are separated by a very fine space. The previous solution attempted to hide this by adding a border to the polygons. The border of adjacent polygons would overlap, which was visible (despite the attempted color correction) and, more importantly, caused massive lags especially on Linux. Therefore it has been removed but feel free to revert this commit some day and try to fix this more cleanly.
-
- 13 May, 2016 1 commit
-
-
Craig Watson authored
-
- 09 May, 2016 2 commits
-
-
Craig Watson authored
This reverts commit 177571ca79cbd92f6544c80ce36ded88ce64fa7a.
-
Craig Watson authored
-
- 26 Apr, 2016 1 commit
-
-
Craig Watson authored
(when an opque stroke was in the vicinity of a translucent one, it became translucent itself)
-
- 15 Feb, 2016 1 commit
-
-
Craig Watson authored
-
- 08 Dec, 2015 1 commit
-
-
Craig Watson authored
-
- 10 Nov, 2015 1 commit
-
-
Craig Watson authored
Long version: UBGraphicsPolygonItem::shape() sometimes caused OpenBoard to crash due to inifinite recursion. This is easily replicated by trying to use the highlighting tool. The reason is: shape() calls boundingRect(); this function's definition is: QRectF QGraphicsPolygonItem::boundingRect() const { Q_D(const QGraphicsPolygonItem); if (d->boundingRect.isNull()) { qreal pw = pen().style() == Qt::NoPen ? qreal(0) : pen().widthF(); if (pw == 0.0) d->boundingRect = d->polygon.boundingRect(); else d->boundingRect = shape().controlPointRect(); } return d->boundingRect; } In the case where pw != 0, the shape() function is called. However, it is shape() from the derived class, not the base class, which is called. In other words, UBGraphicsPolygonItem::shape() is called rather than QGraphicsPolygonItem::shape(). This means that boundingRect() is called again from within shape(), and so on, causing the program to crash. The fix was simply to remove UBGraphicsPolygonItem::shape(), as it appears to provide the same (or very similar) functionality to that of the base class's shape() function. In case this shape() function actually is needed, another workaround should be implemented to prevent this infinite recursion.
-
- 13 May, 2014 1 commit
-
-
Claudio Valerio authored
-
- 16 Apr, 2014 1 commit
-
-
Claudio Valerio authored
-
- 15 Apr, 2014 2 commits
-
-
Claudio Valerio authored
-
Claudio Valerio authored
-
- 14 Aug, 2013 1 commit
-
-
Claudio Valerio authored
-
- 29 Apr, 2013 2 commits
-
-
Claudio Valerio authored
-
Claudio Valerio authored
-
- 27 Feb, 2013 1 commit
-
-
Claudio Valerio authored
-
- 19 Feb, 2013 1 commit
-
-
Claudio Valerio authored
-
- 27 Sep, 2012 1 commit
-
-
Ilia Ryabokon authored
-
- 06 Sep, 2012 1 commit
-
-
shibakaneki authored
-
- 03 Sep, 2012 1 commit
-
-
Aleksei Kanash authored
-
- 31 Aug, 2012 2 commits
-
-
Aleksei Kanash authored
Code was cleaned. Corrections in removing strokes.
-
Aleksei Kanash authored
-
- 27 Aug, 2012 1 commit
-
-
Luca Capello authored
-
- 24 Aug, 2012 1 commit
-
-
Anatoly Mihalchenko authored
-
- 23 Aug, 2012 1 commit
-
-
Anatoly Mihalchenko authored
Interact with item bug with eraser
-
- 08 Aug, 2012 1 commit
-
-
Aleksei Kanash authored
Now coping creates a full copy of already created item. Copy has it's own content (like video, audio or folder) and stores original item properties (like locked, pos, size, freezed e.t.c.).
-
- 09 Jul, 2012 1 commit
-
-
Claudio Valerio authored
-
- 29 May, 2012 1 commit
-
-
Ilia Ryabokon authored
-
- 11 May, 2012 2 commits
-
-
Ivan Ilyin authored
-
Ivan Ilyin authored
-
- 09 May, 2012 1 commit
-
-
shibakaneki authored
-
- 02 May, 2012 1 commit
-
-
Ivan Ilyin authored
-
- 25 Apr, 2012 1 commit
-
-
Ivan Ilin authored
-
- 24 Apr, 2012 1 commit
-
-
shibakaneki authored
-
- 05 Apr, 2012 1 commit
-
-
shibakaneki authored
-