parent
d7f9dc25cd
commit
5fca5830c5
|
@ -10,7 +10,8 @@ void HelpBrowser::setHelpEngine(QHelpEngine *helpEngine)
|
||||||
mHelpEngine = helpEngine;
|
mHelpEngine = helpEngine;
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant HelpBrowser::loadResource(int type, const QUrl &name){
|
QVariant HelpBrowser::loadResource(int type, const QUrl &name)
|
||||||
|
{
|
||||||
if (name.scheme() == "qthelp") {
|
if (name.scheme() == "qthelp") {
|
||||||
QString url(name.toString());
|
QString url(name.toString());
|
||||||
while (url.indexOf("/./") > 0)
|
while (url.indexOf("/./") > 0)
|
||||||
|
|
|
@ -5,23 +5,21 @@
|
||||||
#include <QTextBrowser>
|
#include <QTextBrowser>
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class HelpDialog;
|
class HelpDialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
class QHelpEngine;
|
class QHelpEngine;
|
||||||
|
|
||||||
class HelpBrowser : public QTextBrowser
|
class HelpBrowser : public QTextBrowser {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
HelpBrowser(QWidget* parent = 0) : QTextBrowser(parent), mHelpEngine(nullptr) {}
|
HelpBrowser(QWidget* parent = 0) : QTextBrowser(parent), mHelpEngine(nullptr) {}
|
||||||
void setHelpEngine(QHelpEngine *helpEngine);
|
void setHelpEngine(QHelpEngine *helpEngine);
|
||||||
QVariant loadResource (int type, const QUrl& name);
|
QVariant loadResource(int type, const QUrl& name);
|
||||||
private:
|
private:
|
||||||
QHelpEngine* mHelpEngine;
|
QHelpEngine* mHelpEngine;
|
||||||
};
|
};
|
||||||
|
|
||||||
class HelpDialog : public QDialog
|
class HelpDialog : public QDialog {
|
||||||
{
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue