diff options
author | Marius Kintel <marius@kintel.net> | 2012-01-25 01:59:02 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-01-25 01:59:02 (GMT) |
commit | 16c05eb533f94799a80f5b98c01e952e1cfe337b (patch) | |
tree | 951a555e0662f581c5388f089c5d32a205d09768 /src/mainwin.cc | |
parent | 5e96c21e1979dc46e370587fa0cd7793225a37e2 (diff) |
Temporarily removed progress output from file exporting to remove Qt dependency. When reinstating this, use another mechanism
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r-- | src/mainwin.cc | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index 4979970..20f3c7c 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -1318,26 +1318,17 @@ void MainWindow::actionExportSTLorOFF(bool) return; } - QProgressDialog *pd = new QProgressDialog( - stl_mode ? "Exporting object to STL file..." : "Exporting object to OFF file...", - QString(), 0, this->root_N->p3->number_of_facets() + 1); - pd->setValue(0); - pd->setAutoClose(false); - pd->show(); - QApplication::processEvents(); - std::ofstream fstream(stl_filename.toUtf8()); if (!fstream.is_open()) { PRINTA("Can't open file \"%1\" for export", stl_filename); } else { - if (stl_mode) export_stl(this->root_N, fstream, pd); - else export_off(this->root_N, fstream, pd); + if (stl_mode) export_stl(this->root_N, fstream); + else export_off(this->root_N, fstream); fstream.close(); PRINTF("%s export finished.", stl_mode ? "STL" : "OFF"); } - delete pd; clearCurrentOutput(); #endif /* ENABLE_CGAL */ @@ -1385,7 +1376,7 @@ void MainWindow::actionExportDXF() PRINTA("Can't open file \"%s\" for export", dxf_filename); } else { - export_dxf(this->root_N, fstream, NULL); + export_dxf(this->root_N, fstream); fstream.close(); PRINTF("DXF export finished."); } |