|
|
@ -38,8 +38,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include "board/UBBoardController.h" |
|
|
|
#include "board/UBBoardController.h" |
|
|
|
|
|
|
|
|
|
|
|
const QString freezedWidgetDefaultContentFilePath = "./etc/freezedWidgetWrapper.html"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QStringList UBGraphicsWidgetItem::sInlineJavaScripts; |
|
|
|
QStringList UBGraphicsWidgetItem::sInlineJavaScripts; |
|
|
|
bool UBGraphicsWidgetItem::sInlineJavaScriptLoaded = false; |
|
|
|
bool UBGraphicsWidgetItem::sInlineJavaScriptLoaded = false; |
|
|
|
|
|
|
|
|
|
|
@ -1139,6 +1137,8 @@ QString UBGraphicsW3CWidgetItem::freezedWidgetPage() |
|
|
|
static QString defaultcontent; |
|
|
|
static QString defaultcontent; |
|
|
|
|
|
|
|
|
|
|
|
if (defaultcontent.isNull()) { |
|
|
|
if (defaultcontent.isNull()) { |
|
|
|
|
|
|
|
QString etcPath = UBPlatformUtils::applicationResourcesDirectory() + "/etc/"; |
|
|
|
|
|
|
|
QString freezedWidgetDefaultContentFilePath = etcPath + "freezedWidgetWrapper.html"; |
|
|
|
QFile wrapperFile(freezedWidgetDefaultContentFilePath); |
|
|
|
QFile wrapperFile(freezedWidgetDefaultContentFilePath); |
|
|
|
if (!wrapperFile.open(QIODevice::ReadOnly | QIODevice::Text)) { |
|
|
|
if (!wrapperFile.open(QIODevice::ReadOnly | QIODevice::Text)) { |
|
|
|
qDebug() << "can't open wrapper file " + freezedWidgetDefaultContentFilePath; |
|
|
|
qDebug() << "can't open wrapper file " + freezedWidgetDefaultContentFilePath; |
|
|
|