diff --git a/src/forms/settings/HelpForm.cpp b/src/forms/settings/HelpForm.cpp index 4f82a43..f2af71e 100644 --- a/src/forms/settings/HelpForm.cpp +++ b/src/forms/settings/HelpForm.cpp @@ -5,6 +5,7 @@ #include #include #include +#include HelpForm::HelpForm(QWidget* aParent) : QWidget(aParent) @@ -19,7 +20,8 @@ HelpForm::~HelpForm() void HelpForm::init() { - mPdfWidget->setUrl(QUrl("file:///home/sun/GUI/web/web/viewer.html?file=file:///home/sun/GUI/web/web/compressed.tracemonkey-pldi-09.pdf")); + QString path = QApplication::applicationDirPath(); + mPdfWidget->setUrl(QUrl("file://" + path +"/web/web/viewer.html?file=file://" + path +"/cfgs/help.pdf")); QWebChannel * channel = new QWebChannel(this); channel->registerObject(QStringLiteral("communicator"), new QObject(this)); mPdfWidget->page()->setWebChannel(channel);