Optimization flags

preferencesAboutTextFull
Ilia Ryabokon 12 years ago
parent 4bc6f3cceb
commit 07a270bffc
  1. 3
      src/board/UBBoardView.cpp

@ -146,7 +146,8 @@ void UBBoardView::init ()
setHorizontalScrollBarPolicy (Qt::ScrollBarAlwaysOff);
setAcceptDrops (true);
setOptimizationFlag (QGraphicsView::IndirectPainting); // enable UBBoardView::drawItems filter
setOptimizationFlags (QGraphicsView::IndirectPainting | QGraphicsView::DontSavePainterState); // enable UBBoardView::drawItems filter
setViewportUpdateMode(QGraphicsView::SmartViewportUpdate);
mTabletStylusIsPressed = false;
mMouseButtonIsPressed = false;

Loading…
Cancel
Save