mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
temporarily remove qresources, for ease of testing
This commit is contained in:
@@ -77,12 +77,14 @@ OdfView::OdfView(QWidget* parent) :QWebView(parent)
|
||||
|
||||
// use our own networkaccessmanager that gives limited access to the local
|
||||
// file system
|
||||
QString prefix = ":/";
|
||||
//QString prefix = ":/";
|
||||
QString prefix = "../..";
|
||||
networkaccessmanager = new OdfNetworkAccessManager(QDir(prefix));
|
||||
page()->setNetworkAccessManager(networkaccessmanager);
|
||||
|
||||
// for now, we simply point to the file, we want to read
|
||||
setUrl(QUrl("qrc"+prefix+"odf.html"));
|
||||
//setUrl(QUrl("qrc"+prefix+"odf.html"));
|
||||
setUrl(QUrl("../../odf.html"));
|
||||
loaded = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user