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 |
|
---|
22 | using namespace std;
|
---|
23 |
|
---|
24 | // Constructor
|
---|
25 | ////////////////////////////////////////////////////////////////////////////
|
---|
26 | bncHtml::bncHtml() : QTextBrowser() {
|
---|
27 |
|
---|
28 | connect(this,SIGNAL(anchorClicked(const QUrl&)),
|
---|
29 | this,SLOT(slotAnchorClicked(const QUrl&)));
|
---|
30 | }
|
---|
31 |
|
---|
32 | // Destructor
|
---|
33 | ////////////////////////////////////////////////////////////////////////////
|
---|
34 | bncHtml::~bncHtml() {
|
---|
35 |
|
---|
36 | }
|
---|
37 |
|
---|
38 | //
|
---|
39 | ////////////////////////////////////////////////////////////////////////////
|
---|
40 | void bncHtml::slotAnchorClicked(const QUrl& url) {
|
---|
41 |
|
---|
42 | cout << "A>" << url.toString().toAscii().data() << "<B" << endl;
|
---|
43 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.