forked from qt-creator/qt-creator
fix QPainterPath against Qt 5.15.0
Change-Id: I08aaf6886b04407f1e52ca4f56607c81fccec85c Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -54,6 +54,7 @@
|
||||
#include <QFont>
|
||||
#include <QPen>
|
||||
#include <QPainter>
|
||||
#include <QPainterPath>
|
||||
|
||||
namespace qmt {
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QGraphicsSimpleTextItem;
|
||||
class QPainterPath;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace qmt {
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QGraphicsPathItem;
|
||||
class QPainterPath;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace qmt {
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <QBrush>
|
||||
#include <QLineF>
|
||||
#include <QPainter>
|
||||
#include <QPainterPath>
|
||||
#include <QKeyEvent>
|
||||
|
||||
namespace qmt {
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
|
||||
#include <QGraphicsItem>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QPainterPath)
|
||||
|
||||
namespace qmt {
|
||||
|
||||
class IWindable;
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
|
||||
#include <QGraphicsPixmapItem>
|
||||
#include <QGraphicsScene>
|
||||
#include <QPainterPath>
|
||||
#include <QPropertyAnimation>
|
||||
#include <QSequentialAnimationGroup>
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
#include <QEvent>
|
||||
#include <QMouseEvent>
|
||||
#include <QPainter>
|
||||
#include <QPainterPath>
|
||||
#include <QPixmapCache>
|
||||
#include <QPropertyAnimation>
|
||||
#include <QStyle>
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
|
||||
#include <QEasingCurve>
|
||||
#include <QPainter>
|
||||
#include <QPainterPath>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <QApplication>
|
||||
#include <QGraphicsScene>
|
||||
#include <QPainter>
|
||||
#include <QPainterPath>
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
||||
@@ -28,6 +28,10 @@
|
||||
#include "playhead.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QMouseEvent>
|
||||
#include <QPainterPath>
|
||||
#include <QPoint>
|
||||
#include <QRectF>
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
||||
@@ -28,11 +28,6 @@
|
||||
#include "curveeditorstyle.h"
|
||||
#include "selectableitem.h"
|
||||
|
||||
#include <QMouseEvent>
|
||||
#include <QPainterPath>
|
||||
#include <QPoint>
|
||||
#include <QRectF>
|
||||
|
||||
namespace DesignTools {
|
||||
|
||||
class GraphicsView;
|
||||
@@ -68,19 +63,19 @@ private:
|
||||
|
||||
void applyPreSelection(GraphicsView *view);
|
||||
|
||||
Shortcuts m_shortcuts = Shortcuts();
|
||||
Shortcuts m_shortcuts;
|
||||
|
||||
Shortcut m_shortcut;
|
||||
|
||||
SelectionTool m_tool = SelectionTool::Rectangle;
|
||||
|
||||
QPoint m_mouseInit = QPoint();
|
||||
QPoint m_mouseInit;
|
||||
|
||||
QPoint m_mouseCurr = QPoint();
|
||||
QPoint m_mouseCurr;
|
||||
|
||||
QPainterPath m_lasso = QPainterPath();
|
||||
QPainterPath m_lasso;
|
||||
|
||||
QRectF m_rect = QRectF();
|
||||
QRectF m_rect;
|
||||
};
|
||||
|
||||
} // End namespace DesignTools.
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include "anchorindicatorgraphicsitem.h"
|
||||
|
||||
#include <QPainter>
|
||||
#include <QPainterPath>
|
||||
|
||||
#include <QGraphicsScene>
|
||||
#include <QGraphicsView>
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
|
||||
#include <QDebug>
|
||||
#include <QPainter>
|
||||
#include <QPainterPath>
|
||||
#include <QStyleOptionGraphicsItem>
|
||||
#include <QTimeLine>
|
||||
#include <QGraphicsView>
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QTimeLine;
|
||||
class QPainterPath;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <theme.h>
|
||||
|
||||
#include <QPainter>
|
||||
#include <QPainterPath>
|
||||
#include <QMenu>
|
||||
#include <QtDebug>
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <QMetaType>
|
||||
#include <QPointF>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QPainterPath);
|
||||
QT_FORWARD_DECLARE_CLASS(QPainterPath)
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include <QCursor>
|
||||
#include <QGraphicsView>
|
||||
#include <QPainter>
|
||||
#include <QPainterPath>
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
#include <QGraphicsWidget>
|
||||
#include <QTimer>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QPainterPath)
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
class TimelineItem : public QGraphicsWidget
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
#include <QHBoxLayout>
|
||||
#include <QMenu>
|
||||
#include <QPainter>
|
||||
#include <QPainterPath>
|
||||
|
||||
#include <QGraphicsView>
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
#include <QDebug>
|
||||
#include <QPainter>
|
||||
#include <QPainterPath>
|
||||
#include <QPen>
|
||||
#include <QStringList>
|
||||
#include <QUndoStack>
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <QPen>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QGraphicsSceneMouseEvent)
|
||||
QT_FORWARD_DECLARE_CLASS(QPainterPath)
|
||||
|
||||
namespace ScxmlEditor {
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <QColor>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QWidget)
|
||||
QT_FORWARD_DECLARE_CLASS(QPainterPath)
|
||||
|
||||
namespace TextEditor {
|
||||
class NameMangler;
|
||||
|
||||
Reference in New Issue
Block a user