| 815 | } |
| 816 | |
| 817 | void LabelWidget::fontSuperScriptChanged(bool checked) { |
| 818 | CONDITIONAL_LOCK_RETURN; |
| 819 | |
| 820 | auto format = ui.teLabel->currentCharFormat(); |
| 821 | if (checked) |
| 822 | format.setVerticalAlignment(QTextCharFormat::AlignSuperScript); |
| 823 | else |
| 824 | format.setVerticalAlignment(QTextCharFormat::AlignNormal); |
| 825 | |
| 826 | SETLABELTEXTPROPERTY(setCurrentCharFormat, format); |
| 827 | } |
| 828 | |
| 829 | void LabelWidget::fontSubScriptChanged(bool checked) { |
| 830 | CONDITIONAL_LOCK_RETURN; |