We can't setMinMax() method now.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-04-19 13:16:16 +03:00
parent 3f801298e1
commit c326a4cd75

View File

@ -373,6 +373,8 @@ void TableWindow::LayoutPrint()
printer.setCreator(qApp->applicationDisplayName()+" "+qApp->applicationVersion());
printer.setDocName(fileName);
QPrintDialog dialog( &printer, this );
// If only user couldn't change page margins we could use method setMinMax();
dialog.setOption(QPrintDialog::PrintCurrentPage, false);
if ( dialog.exec() == QDialog::Accepted )
{
printer.setResolution(static_cast<int>(VApplication::PrintDPI));