Vidalia  0.3.1
HelpTextBrowser.h
Go to the documentation of this file.
1 /*
2 ** This file is part of Vidalia, and is subject to the license terms in the
3 ** LICENSE file, found in the top level directory of this distribution. If you
4 ** did not receive the LICENSE file with this file, you may obtain it from the
5 ** Vidalia source package distributed by the Vidalia Project at
6 ** http://www.torproject.org/projects/vidalia.html. No part of Vidalia,
7 ** including this file, may be copied, modified, propagated, or distributed
8 ** except according to the terms described in the LICENSE file.
9 */
10 
11 /*
12 ** \file HelpTextBrowser.h
13 ** \brief Displays an HTML-based help document
14 */
15 
16 #ifndef _HELPTEXTBROWSER_H
17 #define _HELPTEXTBROWSER_H
18 
19 #include <QTextBrowser>
20 #include <QVariant>
21 
22 
23 class HelpTextBrowser : public QTextBrowser
24 {
25  Q_OBJECT
26 
27 public:
28  /** Default constructor. */
29  HelpTextBrowser(QWidget *parent = 0);
30  /** Loads a resource into the browser. */
31  QVariant loadResource(int type, const QUrl &name);
32 
33 public slots:
34  /** Called when the displayed document is changed. If <b>url</b> specifies
35  * an external link, then the user will be prompted for whether they want to
36  * open the link in their default browser or not. */
37  virtual void setSource(const QUrl &url);
38 };
39 
40 #endif
41 
QVariant loadResource(int type, const QUrl &name)
stop errmsg QVariant
virtual void setSource(const QUrl &url)
HelpTextBrowser(QWidget *parent=0)