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