- Timestamp:
- Dec 16, 2021, 4:45:50 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncwindow.cpp
r9572 r9574 131 131 _mapWin = 0; 132 132 133 int ww = QFontMetrics(this->font()). horizontalAdvance('w');133 int ww = QFontMetrics(this->font()).width('w'); 134 134 135 135 static const QStringList labels = QString("account, Streams: resource loader / mountpoint, decoder, country, lat, long, nmea, ntrip, bytes").split(","); … … 2341 2341 settings.setValue("font", newFont.toString()); 2342 2342 QApplication::setFont(newFont); 2343 int ww = QFontMetrics(newFont). horizontalAdvance('w');2343 int ww = QFontMetrics(newFont).width('w'); 2344 2344 setMinimumSize(60*ww, 80*ww); 2345 2345 resize(60*ww, 80*ww); … … 2431 2431 tb->setReadOnly(true); 2432 2432 2433 int ww = QFontMetrics(font()). horizontalAdvance('w');2433 int ww = QFontMetrics(font()).width('w'); 2434 2434 QPushButton* _closeButton = new QPushButton("Close"); 2435 2435 _closeButton->setMaximumWidth(10*ww); … … 2461 2461 QDialog(parent) { 2462 2462 2463 int ww = QFontMetrics(font()). horizontalAdvance('w');2463 int ww = QFontMetrics(font()).width('w'); 2464 2464 QPushButton* _closeButton = new QPushButton("Close"); 2465 2465 _closeButton->setMaximumWidth(10*ww);
Note:
See TracChangeset
for help on using the changeset viewer.