/***************************************************************************
  qgspaintenginehack.cpp - Hack paint engine flags
  ------------------------------------------------
         begin                : July 2012
         copyright            : (C) Juergen E. Fischer
         email                : jef at norbit dot de

 ***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#include "qgis_core.h"
#include "qgis_sip.h"

#include <QPaintEngine>

/**
 * \ingroup core
 * \brief Hack to workaround Qt #5114 by disabling PatternTransform.
 *
 * \deprecated QGIS 4.0. This class no longer does anything and will be removed in QGIS 5.0.
 */
class CORE_DEPRECATED_EXPORT QgsPaintEngineHack : public QPaintEngine SIP_DEPRECATED
{
  public:
    void fixFlags();
    static void fixEngineFlags( QPaintEngine *engine );
};
