Changeset 5947 in ntrip


Ignore:
Timestamp:
Aug 16, 2014, 1:56:41 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5946 r5947  
    399399  populateMountPointsTable();
    400400
    401   _log = new QTextBrowser();
     401  _log = new QTextEdit();
    402402  _log->setReadOnly(true);
     403  QFont msFont(""); msFont.setStyleHint(QFont::TypeWriter); // default monospace font
     404  _log->setFont(msFont);
     405  _log->document()->setMaximumBlockCount(1000);
    403406
    404407  // Combine Corrections
     
    17751778////////////////////////////////////////////////////////////////////////////
    17761779void bncWindow::slotWindowMessage(const QByteArray msg, bool showOnScreen) {
    1777 
    1778 #ifdef DEBUG_RTCM2_2021 
    1779   const int maxBufferSize = 1000;
    1780 #else
    1781   const int maxBufferSize = 10000;
    1782 #endif
    1783 
    1784   if (! showOnScreen ) {
    1785     return;
    1786   }
    1787  
    1788   QString txt = _log->toPlainText() + "\n" +
    1789      QDateTime::currentDateTime().toUTC().toString("yy-MM-dd hh:mm:ss ") + msg;
    1790   _log->clear();
    1791   _log->append(txt.right(maxBufferSize));
     1780  if (showOnScreen ) {
     1781    _log->append(QDateTime::currentDateTime().toUTC().toString("yy-MM-dd hh:mm:ss ") + msg + '\n');
     1782  }
    17921783
    17931784
Note: See TracChangeset for help on using the changeset viewer.