Implemented text auto shrink feature.

This commit is contained in:
Jim Evins
2018-07-08 20:39:14 -04:00
parent 0832acabf5
commit 12b02d2521
10 changed files with 451 additions and 282 deletions
+2
View File
@@ -246,6 +246,7 @@ namespace glabels
textVAlignGroup->button( mObject->textVAlign() )->setChecked( true );
textWrapModeCombo->setCurrentIndex( wrapIndex );
textLineSpacingSpin->setValue( mObject->textLineSpacing() );
textAutoShrinkCheck->setChecked( mObject->textAutoShrink() );
textEdit->setText( mObject->text() );
mBlocked = false;
@@ -718,6 +719,7 @@ namespace glabels
mObject->setTextVAlign( Qt::AlignmentFlag( textVAlignGroup->checkedId() ) );
mObject->setTextWrapMode( wrapMode );
mObject->setTextLineSpacing( textLineSpacingSpin->value() );
mObject->setTextAutoShrink( textAutoShrinkCheck->isChecked() );
mObject->setText( textEdit->toPlainText() );
mBlocked = false;