Changeset 9574 in ntrip


Ignore:
Timestamp:
Dec 16, 2021, 4:45:50 PM (5 months ago)
Author:
stuerze
Message:

some outdated qt methods are removed: revert some changes because they are not available everywhere

File:
1 edited

Legend:

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

    r9572 r9574  
    131131  _mapWin = 0;
    132132
    133   int ww = QFontMetrics(this->font()).horizontalAdvance('w');
     133  int ww = QFontMetrics(this->font()).width('w');
    134134
    135135  static const QStringList labels = QString("account, Streams:   resource loader / mountpoint, decoder, country, lat, long, nmea, ntrip, bytes").split(",");
     
    23412341    settings.setValue("font", newFont.toString());
    23422342    QApplication::setFont(newFont);
    2343     int ww = QFontMetrics(newFont).horizontalAdvance('w');
     2343    int ww = QFontMetrics(newFont).width('w');
    23442344    setMinimumSize(60*ww, 80*ww);
    23452345    resize(60*ww, 80*ww);
     
    24312431  tb->setReadOnly(true);
    24322432
    2433   int ww = QFontMetrics(font()).horizontalAdvance('w');
     2433  int ww = QFontMetrics(font()).width('w');
    24342434  QPushButton* _closeButton = new QPushButton("Close");
    24352435  _closeButton->setMaximumWidth(10*ww);
     
    24612461   QDialog(parent) {
    24622462
    2463   int ww = QFontMetrics(font()).horizontalAdvance('w');
     2463  int ww = QFontMetrics(font()).width('w');
    24642464  QPushButton* _closeButton = new QPushButton("Close");
    24652465  _closeButton->setMaximumWidth(10*ww);
Note: See TracChangeset for help on using the changeset viewer.