Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
helpbrowser.h
Go to the documentation of this file.
1 
8 #ifndef HELPBROWSER_H_
9 #define HELPBROWSER_H_
10 
11 #include <QTextBrowser>
12 class QHelpEngine;
13 
14 class CAHelpBrowser : public QTextBrowser {
15  Q_OBJECT
16  public:
17  CAHelpBrowser(QWidget* parent = 0, QHelpEngine *helpEngine = 0);
19  QVariant loadResource(int type, const QUrl& url);
20  void setSource(const QUrl& url);
21  inline void setHelpEngine(QHelpEngine* helpEngine) { _helpEngine = helpEngine; }
22  inline QHelpEngine* helpEngine() { return _helpEngine; }
23  private:
24  QHelpEngine* _helpEngine;
25 };
26 
27 #endif /* HELPBROWSER_H_ */
28