_minHeight(1),
_maxHeight(5),
_scrollBarsEnabled(true),
+ _pasteProtectionEnabled(true),
_lastDocumentHeight(-1)
{
#if QT_VERSION >= 0x040500
while (cursor.movePosition(QTextCursor::NextCharacter, QTextCursor::KeepAnchor)) {
- if (cursor.selectedText() == QString(QChar(QChar::LineSeparator))) {
+ if (cursor.selectedText() == QString(QChar(QChar::LineSeparator))
+ || cursor.selectedText() == QString(QChar(QChar::ParagraphSeparator))) {
if (color) {
color = false;
mircText.append('\x03');