|
|
@ -888,12 +888,16 @@ void UBDesktopAnnotationController::TransparentWidgetResized() |
|
|
|
void UBDesktopAnnotationController::onTransparentWidgetResized() |
|
|
|
void UBDesktopAnnotationController::onTransparentWidgetResized() |
|
|
|
{ |
|
|
|
{ |
|
|
|
int rW = UBApplication::boardController->paletteManager()->rightPalette()->width(); |
|
|
|
int rW = UBApplication::boardController->paletteManager()->rightPalette()->width(); |
|
|
|
int rH_ = UBApplication::boardController->paletteManager()->rightPalette()->height(); |
|
|
|
int lW = UBApplication::boardController->paletteManager()->leftPalette()->width(); |
|
|
|
|
|
|
|
|
|
|
|
int rH = mTransparentDrawingView->height(); |
|
|
|
int rH = mTransparentDrawingView->height(); |
|
|
|
|
|
|
|
|
|
|
|
UBApplication::boardController->paletteManager()->rightPalette()->resize(rW+1, rH); |
|
|
|
UBApplication::boardController->paletteManager()->rightPalette()->resize(rW+1, rH); |
|
|
|
UBApplication::boardController->paletteManager()->rightPalette()->resize(rW, rH); |
|
|
|
UBApplication::boardController->paletteManager()->rightPalette()->resize(rW, rH); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UBApplication::boardController->paletteManager()->leftPalette()->resize(lW+1, rH); |
|
|
|
|
|
|
|
UBApplication::boardController->paletteManager()->leftPalette()->resize(lW, rH); |
|
|
|
|
|
|
|
|
|
|
|
// mRightPalette->resize(mRightPalette->width(), mTransparentDrawingView->height());
|
|
|
|
// mRightPalette->resize(mRightPalette->width(), mTransparentDrawingView->height());
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -923,6 +927,19 @@ void UBDesktopAnnotationController::updateMask(bool bTransparent) |
|
|
|
UBApplication::boardController->paletteManager()->mKeyboardPalette->width(), UBApplication::boardController->paletteManager()->mKeyboardPalette->height()); |
|
|
|
UBApplication::boardController->paletteManager()->mKeyboardPalette->width(), UBApplication::boardController->paletteManager()->mKeyboardPalette->height()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(UBApplication::boardController->paletteManager()->leftPalette()->isVisible()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
QRect leftPalette(UBApplication::boardController->paletteManager()->leftPalette()->geometry().x(), |
|
|
|
|
|
|
|
UBApplication::boardController->paletteManager()->leftPalette()->geometry().y(), |
|
|
|
|
|
|
|
UBApplication::boardController->paletteManager()->leftPalette()->width(), |
|
|
|
|
|
|
|
UBApplication::boardController->paletteManager()->leftPalette()->height()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QRect tabsPalette(UBApplication::boardController->paletteManager()->leftPalette()->getTabPaletteRect()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
p.drawRect(leftPalette); |
|
|
|
|
|
|
|
p.drawRect(tabsPalette); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(UBApplication::boardController->paletteManager()->rightPalette()->isVisible()) |
|
|
|
if(UBApplication::boardController->paletteManager()->rightPalette()->isVisible()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QRect rightPalette(UBApplication::boardController->paletteManager()->rightPalette()->geometry().x(), |
|
|
|
QRect rightPalette(UBApplication::boardController->paletteManager()->rightPalette()->geometry().x(), |
|
|
|