Optimization flags

preferencesAboutTextFull
Ilia Ryabokon 11 years ago
parent 4bc6f3cceb
commit 07a270bffc
  1. 3
      src/board/UBBoardView.cpp
  2. 2
      src/domain/UBGraphicsStrokesGroup.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;

@ -201,7 +201,7 @@ QVariant UBGraphicsStrokesGroup::itemChange(GraphicsItemChange change, const QVa
return QGraphicsItemGroup::itemChange(change, newValue);
}
QPainterPath UBGraphicsStrokesGroup::shape () const
QPainterPath UBGraphicsStrokesGroup::shape() const
{
QPainterPath path;

Loading…
Cancel
Save