fixed issue 1233

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent dc272ce305
commit 0a84f1e6a4
  1. 6
      src/adaptors/UBSvgSubsetAdaptor.cpp
  2. 1
      src/domain/UBGraphicsWidgetItem.cpp

@ -853,7 +853,7 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene()
UBGraphicsAppleWidgetItem* appleWidgetItem = graphicsAppleWidgetFromSvg(); UBGraphicsAppleWidgetItem* appleWidgetItem = graphicsAppleWidgetFromSvg();
if (appleWidgetItem) if (appleWidgetItem)
{ {
appleWidgetItem->setFlag(QGraphicsItem::ItemIsMovable, true); // appleWidgetItem->setFlag(QGraphicsItem::ItemIsMovable, true);
appleWidgetItem->setFlag(QGraphicsItem::ItemIsSelectable, true); appleWidgetItem->setFlag(QGraphicsItem::ItemIsSelectable, true);
appleWidgetItem->resize(foreignObjectWidth, foreignObjectHeight); appleWidgetItem->resize(foreignObjectWidth, foreignObjectHeight);
@ -877,7 +877,7 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene()
if (w3cWidgetItem) if (w3cWidgetItem)
{ {
w3cWidgetItem->setFlag(QGraphicsItem::ItemIsMovable, true); // w3cWidgetItem->setFlag(QGraphicsItem::ItemIsMovable, true);
w3cWidgetItem->setFlag(QGraphicsItem::ItemIsSelectable, true); w3cWidgetItem->setFlag(QGraphicsItem::ItemIsSelectable, true);
w3cWidgetItem->resize(foreignObjectWidth, foreignObjectHeight); w3cWidgetItem->resize(foreignObjectWidth, foreignObjectHeight);
@ -1460,7 +1460,7 @@ bool UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistScene(int pageIndex)
QVector<tIDataStorage*> dataStorageItems; QVector<tIDataStorage*> dataStorageItems;
if(elements.value("teacherGuide")) if(elements.value("teacherGuide"))
dataStorageItems = elements.value("teacherGuide")->save(pageIndex); dataStorageItems = elements.value("teacherGuide")->save(pageIndex);
foreach(tIDataStorage* eachItem, dataStorageItems){ foreach(tIDataStorage* eachItem, dataStorageItems){
if(eachItem->type == eElementType_START){ if(eachItem->type == eElementType_START){
mXmlWriter.writeStartElement(eachItem->name); mXmlWriter.writeStartElement(eachItem->name);

@ -119,7 +119,6 @@ void UBGraphicsWidgetItem::initialize()
void UBGraphicsWidgetItem::onLinkClicked(const QUrl& url) void UBGraphicsWidgetItem::onLinkClicked(const QUrl& url)
{ {
//UBApplication::webController->loadUrl(url);
load(url); load(url);
} }

Loading…
Cancel
Save