Changeset 8127 in ntrip for trunk/BNC/src/bncgetthread.cpp


Ignore:
Timestamp:
May 10, 2017, 3:20:54 PM (7 years ago)
Author:
stoecker
Message:

update qwt and qwtpolar, many QT5 fixes (unfinished)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncgetthread.cpp

    r8123 r8127  
    4343#include <sstream>
    4444
     45#include <QComboBox>
     46#include <QDialog>
    4547#include <QFile>
    4648#include <QTextStream>
    4749#include <QMutex>
    4850#include <QtNetwork>
     51#include <QPushButton>
     52#include <QTableWidget>
    4953#include <QTime>
    5054
     
    9094  _rawFile = 0;
    9195  _mountPoint = mountPoint;
    92   _staID = mountPoint.path().mid(1).toAscii();
     96  _staID = mountPoint.path().mid(1).toLatin1();
    9397  _format = format;
    9498  _latitude = latitude;
     
    134138      continue;
    135139    }
    136     QByteArray mp = hlp[0].toAscii();
     140    QByteArray mp = hlp[0].toLatin1();
    137141    if (_staID == mp) {
    138142      nmeaPort = hlp[9].toInt();
     
    275279        hlp = "0.0";
    276280      }
    277       QByteArray _serialHeightNMEA = hlp.toAscii();
     281      QByteArray _serialHeightNMEA = hlp.toLatin1();
    278282      _manualNMEAString = ggaString(_latitude, _longitude, _serialHeightNMEA,
    279283          nmeaMode);
     
    603607            QString prn(obs._prn.toString().c_str());
    604608            emit(newMessage(
    605                 _staID + " (" + prn.toAscii() + ")"
     609                _staID + " (" + prn.toLatin1() + ")"
    606610                    + ": Wrong observation epoch(s)", false));
    607611            continue;
     
    619623            long oldTime = it.value();
    620624            if (obsTime < oldTime) {
    621               emit(newMessage(_staID + ": old observation " + prn.toAscii(),
     625              emit(newMessage(_staID + ": old observation " + prn.toLatin1(),
    622626                  false));
    623627              continue;
     
    625629              emit(newMessage(
    626630                  _staID + ": observation coming more than once "
    627                       + prn.toAscii(), false));
     631                      + prn.toLatin1(), false));
    628632              continue;
    629633            }
     
    774778      for (int ii = 0; ii < decoder()->_typeList.size(); ii++) {
    775779        QString type = QString("%1 ").arg(decoder()->_typeList[ii]);
    776         emit(newMessage(_staID + ": Received message type " + type.toAscii(),
     780        emit(newMessage(_staID + ": Received message type " + type.toLatin1(),
    777781            true));
    778782      }
     
    847851            str << " " << rnxTypes[iType];
    848852          }
    849           emit(newMessage(_staID + ": Observation Types: " + msg.toAscii(),
     853          emit(newMessage(_staID + ": Observation Types: " + msg.toLatin1(),
    850854              true));
    851855        }
     
    856860      for (int ii = 0; ii < decoder()->_antType.size(); ii++) {
    857861        QString ant1 = QString("%1 ").arg(decoder()->_antType[ii]);
    858         emit(newMessage(_staID + ": Antenna descriptor " + ant1.toAscii(), true));
     862        emit(newMessage(_staID + ": Antenna descriptor " + ant1.toLatin1(), true));
    859863      }
    860864
     
    870874        QByteArray ant1, ant2, ant3;
    871875        ant1 =
    872             QString("%1 ").arg(decoder()->_antList[ii].xx, 0, 'f', 4).toAscii();
     876            QString("%1 ").arg(decoder()->_antList[ii].xx, 0, 'f', 4).toLatin1();
    873877        ant2 =
    874             QString("%1 ").arg(decoder()->_antList[ii].yy, 0, 'f', 4).toAscii();
     878            QString("%1 ").arg(decoder()->_antList[ii].yy, 0, 'f', 4).toLatin1();
    875879        ant3 =
    876             QString("%1 ").arg(decoder()->_antList[ii].zz, 0, 'f', 4).toAscii();
     880            QString("%1 ").arg(decoder()->_antList[ii].zz, 0, 'f', 4).toLatin1();
    877881        emit(newMessage(_staID + ": " + antT + " (ITRF) X " + ant1 + "m", true));
    878882        emit(newMessage(_staID + ": " + antT + " (ITRF) Y " + ant2 + "m", true));
     
    881885        if (decoder()->_antList[ii].height_f) {
    882886          hh = decoder()->_antList[ii].height;
    883           QByteArray ant4 = QString("%1 ").arg(hh, 0, 'f', 4).toAscii();
     887          QByteArray ant4 = QString("%1 ").arg(hh, 0, 'f', 4).toLatin1();
    884888          emit(newMessage(
    885889              _staID + ": Antenna height above marker " + ant4 + "m", true));
     
    902906          _gloSlots.sort();
    903907          emit(newMessage(
    904               _staID + ": GLONASS Slot:Freq " + _gloSlots.join(" ").toAscii(),
     908              _staID + ": GLONASS Slot:Freq " + _gloSlots.join(" ").toLatin1(),
    905909              true));
    906910        }
     
    983987  _nmeaSockets->push_back(_nmeaServer->nextPendingConnection());
    984988  emit(newMessage(
    985       QString("New PPP client on port: # %1").arg(_nmeaSockets->size()).toAscii(),
     989      QString("New PPP client on port: # %1").arg(_nmeaSockets->size()).toLatin1(),
    986990      true));
    987991}
Note: See TracChangeset for help on using the changeset viewer.