Changeset 4565 in ntrip for trunk/BNC/src/rinex/graphwin.cpp
- Timestamp:
- Aug 28, 2012, 2:01:14 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/graphwin.cpp
r4564 r4565 152 152 // Save the Widget as PNG Files 153 153 //////////////////////////////////////////////////////////////////////////// 154 void t_graphWin::savePNG(const QString& dirName ) {154 void t_graphWin::savePNG(const QString& dirName, QByteArray ext) { 155 155 if (dirName.isEmpty()) { 156 156 return; … … 161 161 QDir dir(dirName); 162 162 QFileInfo fileInfo(_fileName); 163 if (ext.isEmpty()) { 164 ext = ".png"; 165 } 163 166 QString fileName = dir.path() + QDir::separator() 164 + fileInfo.completeBaseName() + ".png";167 + fileInfo.completeBaseName() + ext; 165 168 image.save(fileName,"PNG"); 166 169 }
Note:
See TracChangeset
for help on using the changeset viewer.