removed settings namespace

This commit is contained in:
fourtf
2017-01-23 16:38:06 +01:00
parent 13e7f43278
commit 9041dbf014
13 changed files with 44 additions and 60 deletions
+5 -13
View File
@@ -13,7 +13,8 @@ public:
sizePolicy.setVerticalPolicy(QSizePolicy::Preferred);
this->setSizePolicy(sizePolicy);
QObject::connect(this, &QTextEdit::textChanged, this, &QWidget::updateGeometry);
QObject::connect(this, &QTextEdit::textChanged, this,
&QWidget::updateGeometry);
}
QSize
@@ -30,21 +31,12 @@ public:
protected:
int
heightForWidth(int w) const override
heightForWidth(int) const override
{
auto margins = this->contentsMargins();
int documentWidth;
if (w >= margins.left() + margins.right()) {
documentWidth = w - margins.left() - margins.right();
} else {
documentWidth = 0;
}
auto document = this->document()->clone();
return margins.top() + document->size().height() + margins.bottom() + 5;
return margins.top() + document()->size().height() + margins.bottom() +
5;
}
};