Changeset 113 in ntrip


Ignore:
Timestamp:
Sep 7, 2006, 12:38:55 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmain.cpp

    r100 r113  
    4343  QCoreApplication::setApplicationName("BKG_NTRIP_Client");
    4444
     45  QSettings settings;
    4546  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
    4656    bncWindow* bncWin = new bncWindow();
    4757    bncWin->show();
    4858  }
    4959  else {
    50     QSettings settings;
    5160    bncCaster* caster = new bncCaster(settings.value("outFile").toString(),
    5261                                      settings.value("outPort").toInt());
  • trunk/BNC/bncwindow.cpp

    r112 r113  
    8888
    8989  QSettings settings;
    90 
    9190  _proxyHostLineEdit  = new QLineEdit(settings.value("proxyHost").toString());
    9291  _proxyHostLineEdit->setMaximumWidth(12*ww);
     
    439438  QFont newFont = QFontDialog::getFont(&ok, this->font(), this);
    440439  if (ok) {
     440    QSettings settings;
     441    settings.setValue("font", newFont.toString());
    441442    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.