Changeset 5947 in ntrip
- Timestamp:
- Aug 16, 2014, 1:56:41 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncwindow.cpp
r5946 r5947 399 399 populateMountPointsTable(); 400 400 401 _log = new QText Browser();401 _log = new QTextEdit(); 402 402 _log->setReadOnly(true); 403 QFont msFont(""); msFont.setStyleHint(QFont::TypeWriter); // default monospace font 404 _log->setFont(msFont); 405 _log->document()->setMaximumBlockCount(1000); 403 406 404 407 // Combine Corrections … … 1775 1778 //////////////////////////////////////////////////////////////////////////// 1776 1779 void 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 } 1792 1783 } 1793 1784
Note:
See TracChangeset
for help on using the changeset viewer.