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