Skip to content

Commit

Permalink
Merge pull request #178 from nxt-dev/lodPainter_patch
Browse files Browse the repository at this point in the history
Release editor-v3.8.1
  • Loading branch information
ImLucasBrown authored Mar 13, 2021
2 parents b9bb55f + 96bcdc4 commit 1080fa2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion nxt_editor/connection_graphics_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ def paint(self, painter, option, widget):
thick_mult = 1
pen_style = self.pen_style
else:
painter.setRenderHints(False)
painter.setRenderHints(QtGui.QPainter.Antialiasing |
QtGui.QPainter.SmoothPixmapTransform, False)
thick_mult = 3
pen_style = QtCore.Qt.PenStyle.SolidLine
pen = QtGui.QPen(self.color, self.thickness * thick_mult,
Expand Down
8 changes: 6 additions & 2 deletions nxt_editor/node_graphics_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ def paint(self, painter, option, widget):
QtGui.QPainter.TextAntialiasing |
QtGui.QPainter.SmoothPixmapTransform)
else:
painter.setRenderHints(False)
painter.setRenderHints(QtGui.QPainter.Antialiasing |
QtGui.QPainter.TextAntialiasing |
QtGui.QPainter.SmoothPixmapTransform, False)
self.draw_title(painter, lod)
self.draw_attributes(painter, lod)
self.draw_border(painter, lod)
Expand Down Expand Up @@ -971,7 +973,9 @@ def paint(self, painter, option, widget):
QtGui.QPainter.TextAntialiasing |
QtGui.QPainter.SmoothPixmapTransform)
else:
painter.setRenderHints(False)
painter.setRenderHints(QtGui.QPainter.Antialiasing |
QtGui.QPainter.TextAntialiasing |
QtGui.QPainter.SmoothPixmapTransform, False)
if self.is_hovered:
painter.setPen(QtGui.QPen(QtCore.Qt.white, self.hover_width, QtCore.Qt.SolidLine, QtCore.Qt.RoundCap, QtCore.Qt.RoundJoin))
else:
Expand Down
2 changes: 1 addition & 1 deletion nxt_editor/version.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"EDITOR": {
"MAJOR": 3,
"MINOR": 8,
"PATCH": 0
"PATCH": 1
}
}

0 comments on commit 1080fa2

Please sign in to comment.