|
|
@ -120,6 +120,7 @@ QUrl UBGraphicsWidgetItem::mainHtml() |
|
|
|
|
|
|
|
|
|
|
|
void UBGraphicsWidgetItem::loadMainHtml() |
|
|
|
void UBGraphicsWidgetItem::loadMainHtml() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
mInitialLoadDone = false; |
|
|
|
load(mMainHtmlUrl); |
|
|
|
load(mMainHtmlUrl); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1074,8 +1075,7 @@ QString UBGraphicsW3CWidgetItem::freezedWidgetPage() |
|
|
|
static QString defaultcontent; |
|
|
|
static QString defaultcontent; |
|
|
|
|
|
|
|
|
|
|
|
if (defaultcontent.isNull()) { |
|
|
|
if (defaultcontent.isNull()) { |
|
|
|
QString etcPath = UBPlatformUtils::applicationResourcesDirectory() + "/etc/"; |
|
|
|
QString freezedWidgetDefaultContentFilePath = freezedWidgetFilePath(); |
|
|
|
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; |
|
|
@ -1095,6 +1095,11 @@ QString UBGraphicsW3CWidgetItem::freezedWidgetPage() |
|
|
|
return defaultcontent; |
|
|
|
return defaultcontent; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QString UBGraphicsW3CWidgetItem::freezedWidgetFilePath() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return UBPlatformUtils::applicationResourcesDirectory() + "/etc/" + "freezedWidgetWrapper.html"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool UBGraphicsW3CWidgetItem::hasNPAPIWrapper(const QString& pMimeType) |
|
|
|
bool UBGraphicsW3CWidgetItem::hasNPAPIWrapper(const QString& pMimeType) |
|
|
|
{ |
|
|
|
{ |
|
|
|
loadNPAPIWrappersTemplates(); |
|
|
|
loadNPAPIWrappersTemplates(); |
|
|
|