MCPcopy Create free account
hub / github.com/KDE/labplot / fontSuperScriptChanged

Method fontSuperScriptChanged

src/frontend/widgets/LabelWidget.cpp:817–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815}
816
817void 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
829void LabelWidget::fontSubScriptChanged(bool checked) {
830 CONDITIONAL_LOCK_RETURN;

Callers 1

Calls 1

setVerticalAlignmentMethod · 0.45

Tested by 1