Changeset 7a39458d16 in tspsg for src/mainwindow.cpp
- Timestamp:
- Sep 21, 2012, 11:22:42 PM (12 years ago)
- Branches:
- appveyor, imgbot, master, readme
- Children:
- 07e43cf61a
- Parents:
- 19d4eac43b
- git-author:
- Oleksii Serdiuk <contacts@…> (09/21/12 23:22:42)
- git-committer:
- Oleksii Serdiuk <contacts@…> (09/21/12 23:27:33)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mainwindow.cpp
r19d4eac43b r7a39458d16 307 307 QString format = settings->value("Output/GraphImageFormat", DEF_GRAPH_IMAGE_FORMAT).toString(); 308 308 #if !defined(NOSVG) 309 if (!QImageWriter::supportedImageFormats().contains(format.to Ascii()) && (format != "svg")) {309 if (!QImageWriter::supportedImageFormats().contains(format.toLatin1()) && (format != "svg")) { 310 310 #else // NOSVG 311 if (!QImageWriter::supportedImageFormats().contains(format.to Ascii())) {311 if (!QImageWriter::supportedImageFormats().contains(format.toLatin1())) { 312 312 #endif // NOSVG 313 313 format = DEF_GRAPH_IMAGE_FORMAT; … … 1317 1317 QImageWriter pic; 1318 1318 pic.setDevice(&buf); 1319 pic.setFormat(format.to Ascii());1319 pic.setFormat(format.toLatin1()); 1320 1320 if (pic.supportsOption(QImageIOHandler::Description)) { 1321 1321 pic.setText("Title", "Solution Graph");
Note: See TracChangeset
for help on using the changeset viewer.