mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Allow adjustment of dot size when in dotty mode
This commit is contained in:
@ -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>
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user