Changeset 10524 in ntrip
- Timestamp:
- Aug 19, 2024, 4:14:37 PM (3 months ago)
- Location:
- trunk/BNC/src
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncfigure.cpp
r10234 r10524 58 58 slotNextAnimationFrame(); 59 59 for (int ii = 0; ii <= 1000; ii++) { 60 _ran[0][ii] = qrand() % 255;61 _ran[1][ii] = qrand() % 255;62 _ran[2][ii] = qrand() % 255;60 _ran[0][ii] = rand() % 255; 61 _ran[1][ii] = rand() % 255; 62 _ran[2][ii] = rand() % 255; 63 63 } 64 64 } -
trunk/BNC/src/bncfigurelate.cpp
r9124 r10524 59 59 slotNextAnimationFrame(); 60 60 for (int ii = 0; ii <= 1000; ii++) { 61 _ran[0][ii] = qrand() % 255;62 _ran[1][ii] = qrand() % 255;63 _ran[2][ii] = qrand() % 100;61 _ran[0][ii] = rand() % 255; 62 _ran[1][ii] = rand() % 255; 63 _ran[2][ii] = rand() % 100; 64 64 } 65 65 } -
trunk/BNC/src/bncfigureppp.cpp
r9959 r10524 175 175 unsigned hour, minute; 176 176 double second; 177 int ww = QFontMetrics(this->font()). width('w');177 int ww = QFontMetrics(this->font()).horizontalAdvance('w'); 178 178 179 179 // neu components -
trunk/BNC/src/bnchlpdlg.cpp
r10087 r10524 50 50 QDialog(parent) { 51 51 52 const int ww = QFontMetrics(font()). width('w');52 const int ww = QFontMetrics(font()).horizontalAdvance('w'); 53 53 54 54 _tb = new bncHtml; -
trunk/BNC/src/bncipport.cpp
r10503 r10524 70 70 _ipCountryLineEdit = new QLineEdit(); 71 71 72 int ww = QFontMetrics(font()). width('w');72 int ww = QFontMetrics(font()).horizontalAdvance('w'); 73 73 _ipPortLineEdit->setMaximumWidth(9*ww); 74 74 _ipMountLineEdit->setMaximumWidth(9*ww); -
trunk/BNC/src/bncmain.cpp
r10479 r10524 458 458 QString val(argv[ii+2]); 459 459 if (val.indexOf(";") != -1) { 460 settings.setValue(key, val.split(";", Q String::SkipEmptyParts));460 settings.setValue(key, val.split(";", Qt::SkipEmptyParts)); 461 461 } 462 462 else { -
trunk/BNC/src/bncmap_svg.cpp
r9935 r10524 76 76 // Buttons 77 77 // ------- 78 int ww = QFontMetrics(font()). width('w');78 int ww = QFontMetrics(font()).horizontalAdvance('w'); 79 79 80 80 _buttonClose = new QPushButton(tr("Close"), this); -
trunk/BNC/src/bncserialport.cpp
r10503 r10524 84 84 _serialDataBitsComboBox->setCurrentIndex(3); 85 85 86 int ww = QFontMetrics(font()). width('w');86 int ww = QFontMetrics(font()).horizontalAdvance('w'); 87 87 _serialMountpointLineEdit->setMaximumWidth(11*ww); 88 88 _serialPortLineEdit->setMaximumWidth(11*ww); -
trunk/BNC/src/bncsinextro.cpp
r10149 r10524 93 93 signalPriorities = "G:12&CWPSLX R:12&CP E:1&CBX E:5&QIX C:26&IQX"; 94 94 } 95 QStringList priorList = signalPriorities.split(" ", Q String::SkipEmptyParts);95 QStringList priorList = signalPriorities.split(" ", Qt::SkipEmptyParts); 96 96 QStringList frqStrList; 97 97 for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) { … … 102 102 for (int ii = 0; ii < priorList.size(); ii++) { 103 103 if (priorList[ii].indexOf(":") != -1) { 104 hlp = priorList[ii].split(":", Q String::SkipEmptyParts);104 hlp = priorList[ii].split(":", Qt::SkipEmptyParts); 105 105 if (hlp.size() == 2 && hlp[0].length() == 1 && hlp[0][0] == frqSys) { 106 hlp = hlp[1].split("&", Q String::SkipEmptyParts);106 hlp = hlp[1].split("&", Qt::SkipEmptyParts); 107 107 } 108 108 if (hlp.size() == 2 && hlp[0].indexOf(frqNum) != -1) { -
trunk/BNC/src/bnctabledlg.cpp
r10440 r10524 64 64 QVBoxLayout* mainLayout = new QVBoxLayout(this); 65 65 66 int ww = QFontMetrics(font()). width('w');66 int ww = QFontMetrics(font()).horizontalAdvance('w'); 67 67 68 68 _casterPortLineEdit = new QLineEdit(); … … 316 316 _table->setHorizontalHeaderLabels(labels); 317 317 _table->setSortingEnabled(true); 318 int ww = QFontMetrics(this->font()). width('w');318 int ww = QFontMetrics(this->font()).horizontalAdvance('w'); 319 319 _table->horizontalHeader()->resizeSection( 0,10*ww); 320 320 _table->horizontalHeader()->resizeSection( 1,10*ww); … … 392 392 QString nmea = _table->item(ir,10)->text(); 393 393 format.replace(" ", "_"); 394 if ( _table->isItemSelected(item)) {394 if (item->isSelected()) { 395 395 url.setPath("/"+item->text()); 396 396 mountPoints->push_back(url.toString() + " " + format + " " + country + " " + latitude … … 593 593 _casterTable->setSortingEnabled(true); 594 594 _casterTable->sortItems(0); 595 int ww = QFontMetrics(this->font()). width('w');595 int ww = QFontMetrics(this->font()).horizontalAdvance('w'); 596 596 _casterTable->horizontalHeader()->resizeSection(0,15*ww); 597 597 _casterTable->horizontalHeader()->resizeSection(1, 5*ww); … … 659 659 if (_casterTable) { 660 660 for (int ir = _casterTable->rowCount() - 1; ir >= 0 ; ir--) { 661 if (_casterTable->i sItemSelected(_casterTable->item(ir,0))) {661 if (_casterTable->item(ir,0)->isSelected()) { 662 662 emit newCaster(_casterTable->item(ir,0)->text(), 663 663 _casterTable->item(ir,1)->text()); -
trunk/BNC/src/bncudpport.cpp
r10503 r10524 69 69 _ipCountryLineEdit = new QLineEdit(); 70 70 71 int ww = QFontMetrics(font()). width('w');71 int ww = QFontMetrics(font()).horizontalAdvance('w'); 72 72 _ipPortLineEdit->setMaximumWidth(9*ww); 73 73 _ipMountLineEdit->setMaximumWidth(9*ww); -
trunk/BNC/src/bncwindow.cpp
r10509 r10524 127 127 _mapWin = 0; 128 128 129 int ww = QFontMetrics(this->font()). width('w');129 int ww = QFontMetrics(this->font()).horizontalAdvance('w'); 130 130 131 131 static const QStringList labels = QString("account, Streams: resource loader / mountpoint, decoder, country, lat, long, nmea, ntrip, bytes").split(","); … … 2515 2515 settings.setValue("font", newFont.toString()); 2516 2516 QApplication::setFont(newFont); 2517 int ww = QFontMetrics(newFont). width('w');2517 int ww = QFontMetrics(newFont).horizontalAdvance('w'); 2518 2518 setMinimumSize(60*ww, 80*ww); 2519 2519 resize(60*ww, 80*ww); … … 2601 2601 tb->setReadOnly(true); 2602 2602 2603 int ww = QFontMetrics(font()). width('w');2603 int ww = QFontMetrics(font()).horizontalAdvance('w'); 2604 2604 QPushButton* _closeButton = new QPushButton("Close"); 2605 2605 _closeButton->setMaximumWidth(10*ww); … … 2631 2631 QDialog(parent) { 2632 2632 2633 int ww = QFontMetrics(font()). width('w');2633 int ww = QFontMetrics(font()).horizontalAdvance('w'); 2634 2634 QPushButton* _closeButton = new QPushButton("Close"); 2635 2635 _closeButton->setMaximumWidth(10*ww); -
trunk/BNC/src/pppMain.cpp
r10382 r10524 407 407 408 408 QString priorStr = QString::fromStdString(opt->_signalPriorities); 409 QStringList priorList = priorStr.split(" ", Q String::SkipEmptyParts);409 QStringList priorList = priorStr.split(" ", Qt::SkipEmptyParts); 410 410 QStringList hlpList; 411 411 vector<char> systems = opt->systems(); … … 414 414 for (int ii = 0; ii < priorList.size(); ii++) { 415 415 if (priorList[ii].indexOf(":") != -1) { 416 hlpList = priorList[ii].split(":", Q String::SkipEmptyParts);416 hlpList = priorList[ii].split(":", Qt::SkipEmptyParts); 417 417 if (hlpList.size() == 2 && hlpList[0].length() == 1 && hlpList[0][0] == sys) { 418 hlpList = hlpList[1].split("&", Q String::SkipEmptyParts);418 hlpList = hlpList[1].split("&", Qt::SkipEmptyParts); 419 419 if (hlpList.size() == 2) { 420 420 for (int jj = 0; jj < hlpList[0].size(); jj++) { -
trunk/BNC/src/qtfilechooser.cpp
r8252 r10524 24 24 // Constructor 25 25 //////////////////////////////////////////////////////////////////////////////// 26 qtFileChooser::qtFileChooser(QWidget* parent, qtFileChooser::Mode mode) : 26 qtFileChooser::qtFileChooser(QWidget* parent, qtFileChooser::Mode mode) : 27 27 QWidget(parent), _mode(mode) { 28 28 … … 37 37 38 38 _button = new QPushButton("...", this); 39 _button->setFixedWidth(_button->fontMetrics(). width(" ... "));39 _button->setFixedWidth(_button->fontMetrics().horizontalAdvance(" ... ")); 40 40 layout->addWidget(_button); 41 41 … … 49 49 } 50 50 51 // 51 // 52 52 //////////////////////////////////////////////////////////////////////////////// 53 53 void qtFileChooser::setFileName(const QString& fileName) { … … 55 55 } 56 56 57 // 57 // 58 58 //////////////////////////////////////////////////////////////////////////////// 59 59 QString qtFileChooser::fileName() const { … … 61 61 } 62 62 63 // 63 // 64 64 //////////////////////////////////////////////////////////////////////////////// 65 65 void qtFileChooser::chooseFile() { -
trunk/BNC/src/reqcdlg.cpp
r9850 r10524 64 64 setWindowTitle(tr("RINEX Editing Options")); 65 65 66 int ww = QFontMetrics(font()). width('w');66 int ww = QFontMetrics(font()).horizontalAdvance('w'); 67 67 68 68 const QString timeFmtString = "yyyy-MM-dd hh:mm:ss";
Note:
See TracChangeset
for help on using the changeset viewer.