setMaximumHeight(document()->size().toSize().height());
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setAcceptRichText(false);
setMaximumHeight(document()->size().toSize().height());
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setAcceptRichText(false);
connect(this, SIGNAL(textChanged()), this, SLOT(on_textChanged()));
#endif
connect(this, SIGNAL(textChanged()), this, SLOT(on_textChanged()));
#endif