hack for onboard

preferencesAboutTextFull
Claudio Valerio 10 years ago
parent 5d4ce4b511
commit 4781a9bfc2
  1. 15
      src/board/UBBoardController.cpp

@ -86,6 +86,10 @@
#include "core/memcheck.h" #include "core/memcheck.h"
#ifdef Q_WS_X11
#include <QProcess>
#endif
UBBoardController::UBBoardController(UBMainWindow* mainWindow) UBBoardController::UBBoardController(UBMainWindow* mainWindow)
: UBDocumentContainer(mainWindow->centralWidget()) : UBDocumentContainer(mainWindow->centralWidget())
, mMainWindow(mainWindow) , mMainWindow(mainWindow)
@ -160,6 +164,10 @@ void UBBoardController::init()
UBBoardController::~UBBoardController() UBBoardController::~UBBoardController()
{ {
#ifdef Q_WS_X11
QProcess newProcess;
newProcess.startDetached("killall onboard");
#endif
delete mDisplayView; delete mDisplayView;
} }
@ -816,7 +824,14 @@ void UBBoardController::showKeyboard(bool show)
{ {
if(show) if(show)
UBDrawingController::drawingController()->setStylusTool(UBStylusTool::Selector); UBDrawingController::drawingController()->setStylusTool(UBStylusTool::Selector);
#ifdef Q_WS_X11
QProcess newProcess;
newProcess.startDetached("/usr/bin/onboard");
#else
mPaletteManager->showVirtualKeyboard(show); mPaletteManager->showVirtualKeyboard(show);
#endif
} }

Loading…
Cancel
Save