更新painterpath头文件引用
parent
e8d583b801
commit
0b3bdf7733
|
@ -1,4 +1,4 @@
|
||||||
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
||||||
* Qwt Widget Library
|
* Qwt Widget Library
|
||||||
* Copyright (C) 1997 Josef Wilgen
|
* Copyright (C) 1997 Josef Wilgen
|
||||||
* Copyright (C) 2002 Uwe Rathmann
|
* Copyright (C) 2002 Uwe Rathmann
|
||||||
|
@ -10,7 +10,8 @@
|
||||||
#include "qwt_compass_rose.h"
|
#include "qwt_compass_rose.h"
|
||||||
#include "qwt_point_polar.h"
|
#include "qwt_point_polar.h"
|
||||||
#include "qwt_painter.h"
|
#include "qwt_painter.h"
|
||||||
#include <qpainter.h>
|
#include "qpainter.h"
|
||||||
|
#include "qpainterpath.h"
|
||||||
|
|
||||||
static QPointF qwtIntersection(
|
static QPointF qwtIntersection(
|
||||||
QPointF p11, QPointF p12, QPointF p21, QPointF p22 )
|
QPointF p11, QPointF p12, QPointF p21, QPointF p22 )
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
||||||
* Qwt Widget Library
|
* Qwt Widget Library
|
||||||
* Copyright (C) 1997 Josef Wilgen
|
* Copyright (C) 1997 Josef Wilgen
|
||||||
* Copyright (C) 2002 Uwe Rathmann
|
* Copyright (C) 2002 Uwe Rathmann
|
||||||
|
@ -15,6 +15,7 @@
|
||||||
#include <qmetatype.h>
|
#include <qmetatype.h>
|
||||||
#include <qimage.h>
|
#include <qimage.h>
|
||||||
#include <qpixmap.h>
|
#include <qpixmap.h>
|
||||||
|
#include "qpainterpath.h"
|
||||||
|
|
||||||
class QwtPainterCommand;
|
class QwtPainterCommand;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
||||||
* Qwt Widget Library
|
* Qwt Widget Library
|
||||||
* Copyright (C) 1997 Josef Wilgen
|
* Copyright (C) 1997 Josef Wilgen
|
||||||
* Copyright (C) 2002 Uwe Rathmann
|
* Copyright (C) 2002 Uwe Rathmann
|
||||||
|
@ -13,6 +13,7 @@
|
||||||
#include "qwt_global.h"
|
#include "qwt_global.h"
|
||||||
#include <qpaintdevice.h>
|
#include <qpaintdevice.h>
|
||||||
#include <qpaintengine.h>
|
#include <qpaintengine.h>
|
||||||
|
#include "qpainterpath.h"
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief A null paint device doing nothing
|
\brief A null paint device doing nothing
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
||||||
* Qwt Widget Library
|
* Qwt Widget Library
|
||||||
* Copyright (C) 1997 Josef Wilgen
|
* Copyright (C) 1997 Josef Wilgen
|
||||||
* Copyright (C) 2002 Uwe Rathmann
|
* Copyright (C) 2002 Uwe Rathmann
|
||||||
|
@ -27,6 +27,7 @@
|
||||||
#include <qpaintengine.h>
|
#include <qpaintengine.h>
|
||||||
#include <qapplication.h>
|
#include <qapplication.h>
|
||||||
#include <qdesktopwidget.h>
|
#include <qdesktopwidget.h>
|
||||||
|
#include "qpainterpath.h"
|
||||||
|
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
#include <qwindow.h>
|
#include <qwindow.h>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
||||||
* Qwt Widget Library
|
* Qwt Widget Library
|
||||||
* Copyright (C) 1997 Josef Wilgen
|
* Copyright (C) 1997 Josef Wilgen
|
||||||
* Copyright (C) 2002 Uwe Rathmann
|
* Copyright (C) 2002 Uwe Rathmann
|
||||||
|
@ -8,6 +8,7 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#include "qwt_painter_command.h"
|
#include "qwt_painter_command.h"
|
||||||
|
#include "qpainterpath.h"
|
||||||
|
|
||||||
//! Construct an invalid command
|
//! Construct an invalid command
|
||||||
QwtPainterCommand::QwtPainterCommand():
|
QwtPainterCommand::QwtPainterCommand():
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
||||||
* Qwt Widget Library
|
* Qwt Widget Library
|
||||||
* Copyright (C) 1997 Josef Wilgen
|
* Copyright (C) 1997 Josef Wilgen
|
||||||
* Copyright (C) 2002 Uwe Rathmann
|
* Copyright (C) 2002 Uwe Rathmann
|
||||||
|
@ -14,6 +14,7 @@
|
||||||
#include <qbitmap.h>
|
#include <qbitmap.h>
|
||||||
#include <qstyle.h>
|
#include <qstyle.h>
|
||||||
#include <qstyleoption.h>
|
#include <qstyleoption.h>
|
||||||
|
#include "qpainterpath.h"
|
||||||
|
|
||||||
static QBitmap qwtBorderMask( const QWidget *canvas, const QSize &size )
|
static QBitmap qwtBorderMask( const QWidget *canvas, const QSize &size )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
||||||
* Qwt Widget Library
|
* Qwt Widget Library
|
||||||
* Copyright (C) 1997 Josef Wilgen
|
* Copyright (C) 1997 Josef Wilgen
|
||||||
* Copyright (C) 2002 Uwe Rathmann
|
* Copyright (C) 2002 Uwe Rathmann
|
||||||
|
@ -18,6 +18,7 @@
|
||||||
#include "qwt_text_label.h"
|
#include "qwt_text_label.h"
|
||||||
#include "qwt_math.h"
|
#include "qwt_math.h"
|
||||||
#include <qpainter.h>
|
#include <qpainter.h>
|
||||||
|
#include "qpainterpath.h"
|
||||||
#include <qpaintengine.h>
|
#include <qpaintengine.h>
|
||||||
#include <qtransform.h>
|
#include <qtransform.h>
|
||||||
#include <qprinter.h>
|
#include <qprinter.h>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
||||||
* Qwt Widget Library
|
* Qwt Widget Library
|
||||||
* Copyright (C) 1997 Josef Wilgen
|
* Copyright (C) 1997 Josef Wilgen
|
||||||
* Copyright (C) 2002 Uwe Rathmann
|
* Copyright (C) 2002 Uwe Rathmann
|
||||||
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
#include "qwt_global.h"
|
#include "qwt_global.h"
|
||||||
#include <qpolygon.h>
|
#include <qpolygon.h>
|
||||||
|
#include "qpainterpath.h"
|
||||||
|
|
||||||
class QPainter;
|
class QPainter;
|
||||||
class QRect;
|
class QRect;
|
||||||
|
@ -21,7 +22,6 @@ class QPen;
|
||||||
class QColor;
|
class QColor;
|
||||||
class QPointF;
|
class QPointF;
|
||||||
class QPolygonF;
|
class QPolygonF;
|
||||||
class QPainterPath;
|
|
||||||
class QPixmap;
|
class QPixmap;
|
||||||
class QByteArray;
|
class QByteArray;
|
||||||
class QwtGraphic;
|
class QwtGraphic;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
||||||
* Qwt Widget Library
|
* Qwt Widget Library
|
||||||
* Copyright (C) 1997 Josef Wilgen
|
* Copyright (C) 1997 Josef Wilgen
|
||||||
* Copyright (C) 2002 Uwe Rathmann
|
* Copyright (C) 2002 Uwe Rathmann
|
||||||
|
@ -13,6 +13,7 @@
|
||||||
#include <qpaintengine.h>
|
#include <qpaintengine.h>
|
||||||
#include <qimage.h>
|
#include <qimage.h>
|
||||||
#include <qevent.h>
|
#include <qevent.h>
|
||||||
|
#include "qpainterpath.h"
|
||||||
|
|
||||||
static QImage::Format qwtMaskImageFormat()
|
static QImage::Format qwtMaskImageFormat()
|
||||||
{
|
{
|
||||||
|
|
|
@ -276,6 +276,7 @@ void VideoWidget::drawBg(QPainter *painter)
|
||||||
|
|
||||||
//背景图片为空则绘制文字,否则绘制背景图片
|
//背景图片为空则绘制文字,否则绘制背景图片
|
||||||
if (bgImage.isNull()) {
|
if (bgImage.isNull()) {
|
||||||
|
painter->setFont(this->font());
|
||||||
painter->setPen(palette().foreground().color());
|
painter->setPen(palette().foreground().color());
|
||||||
painter->drawText(rect(), Qt::AlignCenter, bgText);
|
painter->drawText(rect(), Qt::AlignCenter, bgText);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue