Commit 424dc1d8 authored by Claudio Valerio's avatar Claudio Valerio

Fixed bug on linux: after maximazing the palette doesn't update the mask....

Fixed bug on linux: after maximazing the palette doesn't update the mask. Fixed issue: http://188.165.53.52/jira/browse/SANKORE-117
parent a4d36f9e
......@@ -104,6 +104,7 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
connect(mKeyboardPalette, SIGNAL(keyboardActivated(bool)), mTransparentDrawingView, SLOT(virtualKeyboardActivated(bool)));
#ifdef Q_WS_X11
connect(mKeyboardPalette, SIGNAL(moved(QPoint)), this, SLOT(refreshMask()));
connect(mDesktopPalette,SIGNAL(refreshMask()), this, SLOT(refreshMask()));
#endif
}
......
......@@ -136,8 +136,11 @@ void UBDesktopPalette::minimizeMe(eMinimizedLocation location)
actions << mMaximizeAction;
setActions(actions);
QSize newSize = preferredSize();
this->resize(newSize);
adjustSizeAndPosition();
#ifdef Q_WS_X11
emit refreshMask();
#endif
}
// Called when the user wants to maximize the palette
......@@ -161,11 +164,13 @@ void UBDesktopPalette::maximizeMe()
setActions(actions);
QSize newSize = preferredSize();
this->resize(newSize);
adjustSizeAndPosition();
// Notify that the maximization has been done
emit maximized();
#ifdef Q_WS_X11
emit refreshMask();
#endif
}
void UBDesktopPalette::showEvent(QShowEvent *event)
......
......@@ -33,7 +33,10 @@ class UBDesktopPalette : public UBActionPalette
void customClick();
void windowClick();
void screenClick();
// void showVirtualKeyboard(bool);
#ifdef Q_WS_X11
void refreshMask();
#endif
public slots:
......
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