mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-14 23:24:39 -04:00
Polish the GUI a bit
This commit is contained in:
parent
d0f4858762
commit
f2e67de4ea
18 changed files with 552 additions and 427 deletions
|
@ -125,11 +125,22 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags fl)
|
|||
connect(btnSave, SIGNAL(clicked( bool )), SLOT(save()));
|
||||
connect(spnScale, SIGNAL(valueChanged( double )), SLOT(change_print_scale()));
|
||||
connect(btnExit, SIGNAL(clicked( bool )), SLOT(quit_now()));
|
||||
connect(btnReset, SIGNAL(clicked( bool )), SLOT(reset_view()));
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
}
|
||||
|
||||
void MainWindow::reset_view()
|
||||
{
|
||||
scaleSlider->setSliderPosition( 100 );
|
||||
rotateSlider->setSliderPosition( 0 );
|
||||
m_fgcolor=qRgb(0,0,0);
|
||||
m_bgcolor=qRgb(0xff,0xff,0xff);
|
||||
update_preview();
|
||||
}
|
||||
|
||||
void MainWindow::scaleRotate()
|
||||
{
|
||||
view->resetTransform();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue