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

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

* empty log message *

File size: 1.0 KB
RevLine 
[168]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 "bnchtml.h"
19
20using namespace std;
21
22// Constructor
23////////////////////////////////////////////////////////////////////////////
24bncHtml::bncHtml() : QTextBrowser() {
25
26 connect(this,SIGNAL(anchorClicked(const QUrl&)),
27 this,SLOT(slotAnchorClicked(const QUrl&)));
28}
29
30// Destructor
31////////////////////////////////////////////////////////////////////////////
32bncHtml::~bncHtml() {
33
34}
35
36//
37////////////////////////////////////////////////////////////////////////////
38void bncHtml::slotAnchorClicked(const QUrl& url) {
[170]39
[171]40
41 QString href = url.toString();
42 if (href.indexOf(':') != 0) {
43 QUrl urlNew; urlNew.setPath(":bnchelp.html" + href);
44 setSource(url);
45 }
[168]46}
Note: See TracBrowser for help on using the repository browser.