Changeset 5100 in ntrip


Ignore:
Timestamp:
Apr 12, 2013, 4:23:35 PM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/inpedit/tabwidget.cpp

    r5099 r5100  
    1616 * -----------------------------------------------------------------------*/
    1717
    18 #include <iostream>
    1918#include "tabwidget.h"
    2019#include "keyword.h"
     
    9392////////////////////////////////////////////////////////////////////////////
    9493void t_tabWidget::writeInputFile(const QString& fileName) {
     94  QFile file(fileName);
     95  if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {
     96    return;
     97  }
     98  QTextStream out(&file);
    9599  for (int ii = 0; ii < _staticLines.size(); ii++) {
    96     cout << _staticLines[ii].toAscii().data() << endl;
     100    out << _staticLines[ii] << '\n';
    97101  }
    98102}
Note: See TracChangeset for help on using the changeset viewer.