Commit b264964c authored by Claudio Valerio's avatar Claudio Valerio

fixed addItemToLibrary methods

parent 7bda3cd7
...@@ -562,7 +562,9 @@ void UBBoardPaletteManager::addItemToLibrary() ...@@ -562,7 +562,9 @@ void UBBoardPaletteManager::addItemToLibrary()
, Qt::KeepAspectRatio, Qt::SmoothTransformation); , Qt::KeepAspectRatio, Qt::SmoothTransformation);
} }
QImage image = mPixmap.toImage(); QImage image = mPixmap.toImage();
//UBApplication::boardController->libraryController()->importImageOnLibrary(image); // TODO:Claudio
// This is a wrong way of calling importImageOnLibrary but for the moment it works because element on mRightPalette are predefined.
mRightPalette->libWidget()->libNavigator()->libraryWidget()->libraryController()->importImageOnLibrary(image);
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment