|
|
|
@ -97,9 +97,9 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent) |
|
|
|
|
if (UBPlatformUtils::hasVirtualKeyboard()) |
|
|
|
|
{ |
|
|
|
|
#ifdef Q_WS_X11 |
|
|
|
|
mKeyboardPalette = UBKeyboardPalette::create(0); |
|
|
|
|
connect(mTransparentDrawingView, SIGNAL(hidden()), mKeyboardPalette, SLOT(hide())); |
|
|
|
|
connect(mTransparentDrawingView, SIGNAL(shown()), this, SLOT(showKeyboard())); |
|
|
|
|
// mKeyboardPalette = UBKeyboardPalette::create(0);
|
|
|
|
|
// connect(mTransparentDrawingView, SIGNAL(hidden()), mKeyboardPalette, SLOT(hide()));
|
|
|
|
|
// connect(mTransparentDrawingView, SIGNAL(shown()), this, SLOT(showKeyboard()));
|
|
|
|
|
#else |
|
|
|
|
// mKeyboardPalette = UBKeyboardPalette::create(mTransparentDrawingView);
|
|
|
|
|
// mKeyboardPalette->setParent(mTransparentDrawingView);
|
|
|
|
@ -111,7 +111,7 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent) |
|
|
|
|
// mTransparentDrawingView, SLOT(virtualKeyboardActivated(bool)));
|
|
|
|
|
|
|
|
|
|
#ifdef Q_WS_X11 |
|
|
|
|
connect(mKeyboardPalette, SIGNAL(moved(QPoint)), this, SLOT(refreshMask())); |
|
|
|
|
connect(UBApplication::boardController->paletteManager()->mKeyboardPalette, SIGNAL(moved(QPoint)), this, SLOT(refreshMask())); |
|
|
|
|
connect(mDesktopPalette,SIGNAL(refreshMask()), this, SLOT(refreshMask())); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
@ -985,4 +985,4 @@ void UBDesktopAnnotationController::refreshMask() |
|
|
|
|
{ |
|
|
|
|
updateMask(true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|