|
|
@ -453,7 +453,6 @@ void UBBoardController::addScene() |
|
|
|
|
|
|
|
|
|
|
|
setActiveDocumentScene(mActiveDocument, mActiveSceneIndex + 1); |
|
|
|
setActiveDocumentScene(mActiveDocument, mActiveSceneIndex + 1); |
|
|
|
QApplication::restoreOverrideCursor(); |
|
|
|
QApplication::restoreOverrideCursor(); |
|
|
|
centerOn(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2163,14 +2162,13 @@ void UBBoardController::freezeW3CWidget(QGraphicsItem *item, bool freeze) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(item->type() == UBGraphicsW3CWidgetItem::Type) |
|
|
|
if(item->type() == UBGraphicsW3CWidgetItem::Type) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString scriptString; |
|
|
|
|
|
|
|
if (freeze) |
|
|
|
|
|
|
|
scriptString = "setfreezed(true);"; |
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
scriptString = "setfreezed(false);"; |
|
|
|
|
|
|
|
UBGraphicsW3CWidgetItem* item_casted = dynamic_cast<UBGraphicsW3CWidgetItem*>(item); |
|
|
|
UBGraphicsW3CWidgetItem* item_casted = dynamic_cast<UBGraphicsW3CWidgetItem*>(item); |
|
|
|
if (0 == item_casted) |
|
|
|
if (0 == item_casted) |
|
|
|
return; |
|
|
|
return; |
|
|
|
item_casted->widgetWebView()->page()->mainFrame()->evaluateJavaScript(scriptString); |
|
|
|
|
|
|
|
|
|
|
|
if (freeze) { |
|
|
|
|
|
|
|
item_casted->widgetWebView()->page()->mainFrame()->setContent(UBW3CWidget::freezedWidgetPage().toAscii()); |
|
|
|
|
|
|
|
} else |
|
|
|
|
|
|
|
item_casted->widgetWebView()->loadMainHtml(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|