if((f.pointSizeF() * factor) < m_minFontSize) {
f.setPointSizeF(m_minFontSize);
text.append("\n");
disconnect(this->document(), SIGNAL(contentsChange(int,int,int)),
this, SLOT(contentsChangedHandler(int,int,int)));
this->setPlainText(text);
connect(this->document(), SIGNAL(contentsChange(int,int,int)),
this, SLOT(contentsChangedHandler(int,int,int)));
}
if((f.pointSizeF() * factor) < m_minFontSize) {
f.setPointSizeF(m_minFontSize);
text.append("\n");
disconnect(this->document(), SIGNAL(contentsChange(int,int,int)),
this, SLOT(contentsChangedHandler(int,int,int)));
this->setPlainText(text);
connect(this->document(), SIGNAL(contentsChange(int,int,int)),
this, SLOT(contentsChangedHandler(int,int,int)));
}
To copy to clipboard, switch view to plain text mode
Bookmarks