- Timestamp:
- Sep 7, 2006, 12:38:55 PM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmain.cpp
r100 r113 43 43 QCoreApplication::setApplicationName("BKG_NTRIP_Client"); 44 44 45 QSettings settings; 45 46 if (GUIenabled) { 47 48 QString fontString = settings.value("font").toString(); 49 if ( !fontString.isEmpty() ) { 50 QFont newFont; 51 if (newFont.fromString(fontString)) { 52 QApplication::setFont(newFont); 53 } 54 } 55 46 56 bncWindow* bncWin = new bncWindow(); 47 57 bncWin->show(); 48 58 } 49 59 else { 50 QSettings settings;51 60 bncCaster* caster = new bncCaster(settings.value("outFile").toString(), 52 61 settings.value("outPort").toInt()); -
trunk/BNC/bncwindow.cpp
r112 r113 88 88 89 89 QSettings settings; 90 91 90 _proxyHostLineEdit = new QLineEdit(settings.value("proxyHost").toString()); 92 91 _proxyHostLineEdit->setMaximumWidth(12*ww); … … 439 438 QFont newFont = QFontDialog::getFont(&ok, this->font(), this); 440 439 if (ok) { 440 QSettings settings; 441 settings.setValue("font", newFont.toString()); 441 442 QApplication::setFont(newFont); 442 } 443 } 443 int ww = QFontMetrics(newFont).width('w'); 444 setMinimumSize(90*ww, 80*ww); 445 } 446 }
Note:
See TracChangeset
for help on using the changeset viewer.