Changeset 4565 in ntrip for trunk/BNC/src/rinex/graphwin.cpp


Ignore:
Timestamp:
Aug 28, 2012, 2:01:14 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/graphwin.cpp

    r4564 r4565  
    152152// Save the Widget as PNG Files
    153153////////////////////////////////////////////////////////////////////////////
    154 void t_graphWin::savePNG(const QString& dirName) {
     154void t_graphWin::savePNG(const QString& dirName, QByteArray ext) {
    155155  if (dirName.isEmpty()) {
    156156    return;
     
    161161  QDir dir(dirName);
    162162  QFileInfo fileInfo(_fileName);
     163  if (ext.isEmpty()) {
     164    ext = ".png";
     165  }
    163166  QString fileName = dir.path() + QDir::separator()
    164                    + fileInfo.completeBaseName() + ".png";
     167                   + fileInfo.completeBaseName() + ext;
    165168  image.save(fileName,"PNG");
    166169}
Note: See TracChangeset for help on using the changeset viewer.