Fixed determination of board view for tablet events work around.

preferencesAboutTextFull
Aleksei Kanash 12 years ago committed by Claudio Valerio
parent c51a8159e2
commit f4da4e021a
  1. 4
      src/board/UBBoardView.cpp

@ -899,7 +899,9 @@ QWidget *UBBoardView::widgetForTabletEvent(QWidget *w, const QPoint &pos)
{ {
Q_ASSERT(w); Q_ASSERT(w);
UBBoardView *board = qobject_cast<UBBoardView *>(w); // it should work that, but it doesn't. So we check if it is control view.
//UBBoardView *board = qobject_cast<UBBoardView *>(w);
UBBoardView *board = UBApplication::boardController->controlView();
QWidget *childAtPos = NULL; QWidget *childAtPos = NULL;

Loading…
Cancel
Save