Example #1
0
void Document::cursorPositionChanged()
{
    emit indentChanged(m_text->textCursor().blockFormat().indent());
    emit alignmentChanged();
    if (QApplication::mouseButtons() == Qt::NoButton) {
        centerCursor();
    }
}
Example #2
0
void Document::cursorPositionChanged()
{
	emit indentChanged(m_text->textCursor().blockFormat().indent());
	emit alignmentChanged();
        emit headingsChanged();
}