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