mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 11:22:28 +12:00
parent
2b992e70c6
commit
01036e4540
|
@ -488,7 +488,7 @@ class corkDelegate(QStyledItemDelegate):
|
|||
fullSummary = item.data(Outline.summaryFull)
|
||||
if lineSummary or not fullSummary:
|
||||
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.setPen(Qt.NoPen)
|
||||
p.setBrush(QColor("#EEE"))
|
||||
|
|
|
@ -369,7 +369,7 @@ class textEditView(QTextEdit):
|
|||
opt = settings.textEditor
|
||||
docHeight = self.document().size().height() + 2 * opt["marginsTB"]
|
||||
if self.heightMin <= docHeight <= self.heightMax:
|
||||
self.setMinimumHeight(docHeight)
|
||||
self.setMinimumHeight(int(docHeight))
|
||||
|
||||
def setAutoResize(self, val):
|
||||
self._autoResize = val
|
||||
|
|
Loading…
Reference in a new issue