source: ntrip/trunk/BNC/bnchtml.cpp@ 171

Last change on this file since 171 was 171, checked in by mervart, 18 years ago

* empty log message *

File size: 1.1 KB
Line 
1
2/* -------------------------------------------------------------------------
3 * BKG NTRIP Client
4 * -------------------------------------------------------------------------
5 *
6 * Class: bncHtml
7 *
8 * Purpose: HTML Browser
9 *
10 * Author: L. Mervart
11 *
12 * Created: 14-Sep-2006
13 *
14 * Changes:
15 *
16 * -----------------------------------------------------------------------*/
17
18#include <iostream>
19
20#include "bnchtml.h"
21
22using namespace std;
23
24// Constructor
25////////////////////////////////////////////////////////////////////////////
26bncHtml::bncHtml() : QTextBrowser() {
27
28 connect(this,SIGNAL(anchorClicked(const QUrl&)),
29 this,SLOT(slotAnchorClicked(const QUrl&)));
30}
31
32// Destructor
33////////////////////////////////////////////////////////////////////////////
34bncHtml::~bncHtml() {
35
36}
37
38//
39////////////////////////////////////////////////////////////////////////////
40void bncHtml::slotAnchorClicked(const QUrl& url) {
41
42
43 QString href = url.toString();
44 if (href.indexOf(':') != 0) {
45 QUrl urlNew; urlNew.setPath(":bnchelp.html" + href);
46 setSource(url);
47 }
48}
Note: See TracBrowser for help on using the repository browser.