Disable generation Wavefront OBJ.

Will be available only in debug mode.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2017-04-11 11:56:01 +03:00
parent c264b80ea0
commit 534b948b52

View File

@ -317,15 +317,19 @@ bool DialogSaveLayout::TestPdf()
QVector<std::pair<QString, QString>> DialogSaveLayout::InitAvailFormats() QVector<std::pair<QString, QString>> DialogSaveLayout::InitAvailFormats()
{ {
QVector<std::pair<QString, QString>> list; QVector<std::pair<QString, QString>> list;
list.append(std::make_pair(tr("Svg files (*.svg)"), QLatin1String(".svg"))); list.append(std::make_pair(QLatin1String("Svg ") + tr("files") + QLatin1String(" (*.svg)"), QLatin1String(".svg")));
list.append(std::make_pair(tr("PDF files (*.pdf)"), QLatin1String(".pdf"))); list.append(std::make_pair(QLatin1String("PDF ") + tr("files") + QLatin1String(" (*.pdf)"), QLatin1String(".pdf")));
list.append(std::make_pair(tr("Images (*.png)"), QLatin1String(".png"))); list.append(std::make_pair(QLatin1String("Images") + QLatin1String(" (*.png)"), QLatin1String(".png")));
list.append(std::make_pair(tr("Wavefront OBJ (*.obj)"), QLatin1String(".obj"))); #ifndef V_NO_ASSERT // Temporarily unavailable
list.append(std::make_pair(QLatin1String("Wavefront OBJ (*.obj)"), QLatin1String(".obj")));
#endif
if (SupportPSTest()) if (SupportPSTest())
{ {
list.append(std::make_pair(tr("PS files (*.ps)"), QLatin1String(".ps"))); list.append(std::make_pair(QLatin1String("PS ") + tr("files") + QLatin1String(" (*.ps)"),
list.append(std::make_pair(tr("EPS files (*.eps)"), QLatin1String(".eps"))); QLatin1String(".ps")));
list.append(std::make_pair(QLatin1String("EPS ") + tr("files") + QLatin1String(" (*.eps)"),
QLatin1String(".eps")));
} }
list.append(std::make_pair(tr("DXF files (*.dxf)"), QLatin1String(".dxf"))); list.append(std::make_pair(QLatin1String("DXF ") + tr("files") + QLatin1String(" (*.dxf)"), QLatin1String(".dxf")));
return list; return list;
} }