From 45931ab29accb3e1b7fddb5a6531662630bc4993 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Fri, 2 Nov 2012 10:45:08 +0100 Subject: [PATCH] At the first time the switch on the desktop mode is done the stylus palette is maximized --- src/desktop/UBDesktopAnnotationController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/desktop/UBDesktopAnnotationController.cpp b/src/desktop/UBDesktopAnnotationController.cpp index ded2270e..74193022 100644 --- a/src/desktop/UBDesktopAnnotationController.cpp +++ b/src/desktop/UBDesktopAnnotationController.cpp @@ -62,7 +62,7 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent, UB , mDesktopMarkerPalette(NULL) , mDesktopEraserPalette(NULL) , mRightPalette(rightPalette) - , mWindowPositionInitialized(0) + , mWindowPositionInitialized(false) , mIsFullyTransparent(false) , mDesktopToolsPalettePositioned(false) , mPendingPenButtonPressed(false) @@ -291,6 +291,7 @@ void UBDesktopAnnotationController::showWindow() mDesktopPalette->move(5, desktopRect.top() + 150); mWindowPositionInitialized = true; + mDesktopPalette->maximizeMe(); } updateBackground(); @@ -719,7 +720,6 @@ void UBDesktopAnnotationController::switchCursor(const int tool) */ void UBDesktopAnnotationController::onDesktopPaletteMaximized() { - // Pen UBActionPaletteButton* pPenButton = mDesktopPalette->getButtonFromAction(UBApplication::mainWindow->actionPen); if(NULL != pPenButton)