NoBrush style for page brush and fix page pen width value.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-05-20 20:21:36 +03:00
parent c989124772
commit ee9b1a6481

View file

@ -165,7 +165,7 @@ void MainWindowsNoGUI::ExportLayoutAs()
brush->setColor( QColor( Qt::white ) );
scenes[i]->setBackgroundBrush( *brush );
shadows[i]->setVisible(false);
paper->setPen(QPen(Qt::white, 0.1, Qt::NoPen));
paper->setPen(QPen(QBrush(Qt::white, Qt::NoBrush), 0.1, Qt::NoPen));
const QStringList suffix = QStringList() << "svg" << "png" << "pdf" << "eps" << "ps" << "obj";
switch (suffix.indexOf(suf))
{
@ -195,7 +195,7 @@ void MainWindowsNoGUI::ExportLayoutAs()
qDebug() << "Can't recognize file suffix." << Q_FUNC_INFO;
break;
}
paper->setPen(QPen(Qt::black, qApp->toPixel(qApp->widthMainLine())));
paper->setPen(QPen(Qt::black, 1));
brush->setColor( QColor( Qt::gray ) );
brush->setStyle( Qt::SolidPattern );
scenes[i]->setBackgroundBrush( *brush );