1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-22 19:36:05 +00:00

Allow adjustment of dot size when in dotty mode

This commit is contained in:
Robin Stuart
2016-09-18 14:09:58 +01:00
parent b13efe334a
commit 9eff5cc63a
10 changed files with 46 additions and 14 deletions

View File

@@ -281,7 +281,7 @@
<item row="1" column="0">
<widget class="QLabel" name="lblDotSize">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="text">
<string>Dot Size:</string>
@@ -307,10 +307,10 @@
<item row="1" column="1">
<widget class="QLineEdit" name="txtDotSize">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="text">
<string>1.0</string>
<string>0.8</string>
</property>
</widget>
</item>

View File

@@ -298,6 +298,7 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("cmbDotCols"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radDotStan"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radDotGs1"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("txtDotSize"), SIGNAL(textChanged( QString )), SLOT(update_preview()));
}
if(metaObject()->enumerator(0).value(bstyle->currentIndex()) == BARCODE_AZTEC)
@@ -713,6 +714,7 @@ void MainWindow::update_preview()
m_bc.bc.setWidth(m_optionWidget->findChild<QComboBox*>("cmbDotCols")->currentIndex());
if(m_optionWidget->findChild<QRadioButton*>("radDotGs1")->isChecked())
m_bc.bc.setInputMode(GS1_MODE);
m_bc.bc.setDotSize(m_optionWidget->findChild<QLineEdit*>("txtDotSize")->text().toFloat());
break;
case BARCODE_AZTEC: