mDesktopPenPalette=newUBDesktopPenPalette(mTransparentDrawingView);// FIX #633: The palette must be 'floating' in order to stay on top of the library palette
mDesktopMarkerPalette=newUBDesktopMarkerPalette(mTransparentDrawingView);// FIX #633: The palette must be 'floating' in order to stay on top of the library palette
mDesktopEraserPalette=newUBDesktopEraserPalette(mTransparentDrawingView);// FIX #633: The palette must be 'floating' in order to stay on top of the library palette
// First determine if the palette must be shown on the left or on the right
// First determine if the palette must be shown on the left or on the right
if(desktopPalettePos.x()<=(mTransparentDrawingView->width()-(palette->width()+mDesktopPalette->width()+20)))// we take a small margin of 20 pixels
if(desktopPalettePos.x()<=(mTransparentDrawingView->width()-(palette->width()+mDesktopPalette->width()+mRightPalette->width()+20)))// we take a small margin of 20 pixels