mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-23 03:26:56 -04:00
aspectRatio
This commit is contained in:
parent
634386b8a4
commit
5994ff5cf7
4 changed files with 76 additions and 40 deletions
|
@ -66,6 +66,7 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags fl)
|
|||
connect(btype, SIGNAL(currentIndexChanged( int )), SLOT(on_generate_clicked()));
|
||||
connect(primary, SIGNAL(textChanged( const QString& )), SLOT(on_generate_clicked()));
|
||||
connect(text, SIGNAL(textChanged()), SLOT(on_generate_clicked()));
|
||||
connect(aspectRatio, SIGNAL(currentIndexChanged( int )), SLOT(on_generate_clicked()));
|
||||
|
||||
}
|
||||
|
||||
|
@ -90,6 +91,7 @@ void MainWindow::on_generate_clicked()
|
|||
QString error;
|
||||
m_bc.w=iwidth->value();
|
||||
m_bc.h=iheight->value();
|
||||
m_bc.ar=(Zint::QZint::AspectRatioMode)aspectRatio->currentIndex();
|
||||
m_bc.bc.setText(text->toPlainText());
|
||||
m_bc.bc.setPrimaryMessage(primary->text());
|
||||
m_bc.bc.setSymbol(metaObject()->enumerator(0).value(bstyle->currentIndex()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue