LCOV - code coverage report
Current view: top level - core - qgspaintenginehack.cpp (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 0 21 0.0 %
Date: 2021-04-10 08:29:14 Functions: 0 0 -
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /***************************************************************************
       2                 :            :   qgspaintenginehack.cpp
       3                 :            :   Hack paint engine flags
       4                 :            :   -------------------
       5                 :            :          begin                : July 2012
       6                 :            :          copyright            : (C) Juergen E. Fischer
       7                 :            :          email                : jef at norbit dot de
       8                 :            : 
       9                 :            :  ***************************************************************************
      10                 :            :  *                                                                         *
      11                 :            :  *   This program is free software; you can redistribute it and/or modify  *
      12                 :            :  *   it under the terms of the GNU General Public License as published by  *
      13                 :            :  *   the Free Software Foundation; either version 2 of the License, or     *
      14                 :            :  *   (at your option) any later version.                                   *
      15                 :            :  *                                                                         *
      16                 :            :  ***************************************************************************/
      17                 :            : 
      18                 :            : #include "qgspaintenginehack.h"
      19                 :            : 
      20                 :            : // Hack to workaround Qt #5114 by disabling PatternTransform
      21                 :          0 : void QgsPaintEngineHack::fixFlags()
      22                 :            : {
      23                 :          0 :   gccaps = PaintEngineFeatures();
      24                 :          0 :   gccaps |= ( QPaintEngine::PrimitiveTransform
      25                 :            :               // | QPaintEngine::PatternTransform
      26                 :          0 :               | QPaintEngine::PixmapTransform
      27                 :          0 :               | QPaintEngine::PatternBrush
      28                 :            :               // | QPaintEngine::LinearGradientFill
      29                 :            :               // | QPaintEngine::RadialGradientFill
      30                 :            :               // | QPaintEngine::ConicalGradientFill
      31                 :          0 :               | QPaintEngine::AlphaBlend
      32                 :            :               // | QPaintEngine::PorterDuff
      33                 :          0 :               | QPaintEngine::PainterPaths
      34                 :          0 :               | QPaintEngine::Antialiasing
      35                 :          0 :               | QPaintEngine::BrushStroke
      36                 :          0 :               | QPaintEngine::ConstantOpacity
      37                 :          0 :               | QPaintEngine::MaskedBrush
      38                 :            :               // | QPaintEngine::PerspectiveTransform
      39                 :          0 :               | QPaintEngine::BlendModes
      40                 :            :               // | QPaintEngine::ObjectBoundingModeGradients
      41                 :          0 :               | QPaintEngine::RasterOpModes
      42                 :          0 :               | QPaintEngine::PaintOutsidePaintEvent
      43                 :            :             );
      44                 :          0 : }
      45                 :            : 
      46                 :          0 : void QgsPaintEngineHack::fixEngineFlags( QPaintEngine *engine )
      47                 :            : {
      48                 :          0 :   if ( !engine )
      49                 :          0 :     return;
      50                 :            : 
      51                 :          0 :   QgsPaintEngineHack *hack = static_cast<QgsPaintEngineHack *>( engine );
      52                 :          0 :   hack->fixFlags();
      53                 :          0 : }

Generated by: LCOV version 1.14