Changeset 177 in ntrip for trunk/BNC/bncwindow.cpp


Ignore:
Timestamp:
Sep 24, 2006, 2:04:48 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r173 r177  
    2020#include "bncgetthread.h"
    2121#include "bnctabledlg.h"
     22#include "bnchlpdlg.h"
    2223#include "bnchtml.h"
    2324
     
    442443////////////////////////////////////////////////////////////////////////////
    443444void bncWindow::slotHelp() {
    444 
    445   bncHtml* tb = new bncHtml;
    446   QUrl url; url.setPath(":bnchelp.html");
    447   tb->setSource(url);
    448   tb->setReadOnly(true);
    449 
    450   QDialog* dlg = new QDialog(this);
    451 
    452   QVBoxLayout* dlgLayout = new QVBoxLayout();
    453   dlgLayout->addWidget(tb);
    454 
    455   dlg->setLayout(dlgLayout);
    456   int ww = QFontMetrics(font()).width('w');
    457   dlg->resize(60*ww, 60*ww);
    458   dlg->show();
     445  QUrl url;
     446  url.setPath(":bnchelp.html");
     447  new bncHlpDlg(this, url);
    459448}
    460449
Note: See TracChangeset for help on using the changeset viewer.