1 /****************************************************************************************************** 2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 5 ******************************************************************************************************/ 6 7 #ifndef HELP_BROWSER_H 8 #define HELP_BROWSER_H 9 10 #include <QTextBrowser> 11 12 class QHelpEngine; 13 14 /// Text browser with resource loading enhanced for use as help text browser 15 class HelpBrowser : public QTextBrowser 16 { 17 public: 18 /// Single constructor 19 HelpBrowser (QHelpEngine *engine, 20 QWidget *parent = 0); 21 22 /// Load resources 23 QVariant loadResource (int type, const QUrl &url); 24 25 private: 26 HelpBrowser (); 27 28 QHelpEngine *m_engine; 29 }; 30 31 #endif // HELP_BROWSER_H 32