mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-03 11:34:33 +12:00
commit
0182a43b8e
|
@ -488,7 +488,7 @@ class corkDelegate(QStyledItemDelegate):
|
||||||
fullSummary = item.data(Outline.summaryFull)
|
fullSummary = item.data(Outline.summaryFull)
|
||||||
if lineSummary or not fullSummary:
|
if lineSummary or not fullSummary:
|
||||||
m = self.margin
|
m = self.margin
|
||||||
r = self.mainLineRect.adjusted(-m, -m, m, m / 2)
|
r = self.mainLineRect.adjusted(-m, -m, m, int(m / 2))
|
||||||
p.save()
|
p.save()
|
||||||
p.setPen(Qt.NoPen)
|
p.setPen(Qt.NoPen)
|
||||||
p.setBrush(QColor("#EEE"))
|
p.setBrush(QColor("#EEE"))
|
||||||
|
|
|
@ -369,7 +369,7 @@ class textEditView(QTextEdit):
|
||||||
opt = settings.textEditor
|
opt = settings.textEditor
|
||||||
docHeight = self.document().size().height() + 2 * opt["marginsTB"]
|
docHeight = self.document().size().height() + 2 * opt["marginsTB"]
|
||||||
if self.heightMin <= docHeight <= self.heightMax:
|
if self.heightMin <= docHeight <= self.heightMax:
|
||||||
self.setMinimumHeight(docHeight)
|
self.setMinimumHeight(int(docHeight))
|
||||||
|
|
||||||
def setAutoResize(self, val):
|
def setAutoResize(self, val):
|
||||||
self._autoResize = val
|
self._autoResize = val
|
||||||
|
|
Loading…
Reference in a new issue