SANKORE-500

preferencesAboutTextFull
Anatoly Mihalchenko 13 years ago
parent 8e695fb805
commit b6604dce59
  1. 23
      src/board/UBBoardPaletteManager.cpp

@ -59,6 +59,8 @@
#include "core/memcheck.h" #include "core/memcheck.h"
#include "document/UBDocumentController.h"
UBBoardPaletteManager::UBBoardPaletteManager(QWidget* container, UBBoardController* pBoardController) UBBoardPaletteManager::UBBoardPaletteManager(QWidget* container, UBBoardController* pBoardController)
: QObject(container) : QObject(container)
, mKeyboardPalette(0) , mKeyboardPalette(0)
@ -733,6 +735,27 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is
} }
break; break;
case eUBDockPaletteWidget_DOCUMENT:
{
mLeftPalette->setVisible(leftPaletteVisible);
mRightPalette->setVisible(rightPaletteVisible);
mLeftPalette->assignParent(UBApplication::documentController->controlView());
mRightPalette->assignParent(UBApplication::documentController->controlView());
if (UBPlatformUtils::hasVirtualKeyboard() && mKeyboardPalette != NULL)
{
if(mKeyboardPalette->m_isVisible)
{
mKeyboardPalette->hide();
mKeyboardPalette->setParent(UBApplication::documentController->controlView());
mKeyboardPalette->show();
}
else
mKeyboardPalette->setParent(UBApplication::documentController->controlView());
}
}
break;
default: default:
{ {
mLeftPalette->setVisible(leftPaletteVisible); mLeftPalette->setVisible(leftPaletteVisible);

Loading…
Cancel
Save