summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpainter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/painting/qpainter.cpp')
-rw-r--r--src/gui/painting/qpainter.cpp588
1 files changed, 0 insertions, 588 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp
index fe9914bd8f..2cd601f2c7 100644
--- a/src/gui/painting/qpainter.cpp
+++ b/src/gui/painting/qpainter.cpp
@@ -3785,29 +3785,6 @@ void QPainter::drawPoints(const QPoint *points, int pointCount)
*/
/*!
- \fn void QPainter::drawPoints(const QPolygon &polygon, int index,
- int count)
-
- \overload
- \compat
-
- Draws \a count points in the vector \a polygon starting on \a index
- using the current pen.
-
- Use drawPoints() combined with QPolygon::constData() instead.
-
- \oldcode
- QPainter painter(this);
- painter.drawPoints(polygon, index, count);
- \newcode
- int pointCount = (count == -1) ? polygon.size() - index : count;
-
- QPainter painter(this);
- painter.drawPoints(polygon.constData() + index, pointCount);
- \endcode
-*/
-
-/*!
Sets the background mode of the painter to the given \a mode
Qt::TransparentMode (the default) draws stippled lines and text
@@ -4808,29 +4785,6 @@ void QPainter::drawPolyline(const QPoint *points, int pointCount)
}
/*!
- \fn void QPainter::drawPolyline(const QPolygon &polygon, int index, int
- count)
-
- \overload
- \compat
-
- Draws the polyline defined by the \a count lines of the given \a
- polygon starting at \a index (\a index defaults to 0).
-
- Use drawPolyline() combined with QPolygon::constData() instead.
-
- \oldcode
- QPainter painter(this);
- painter.drawPolyline(polygon, index, count);
- \newcode
- int pointCount = (count == -1) ? polygon.size() - index : count;
-
- QPainter painter(this);
- painter.drawPolyline(polygon.constData() + index, pointCount);
- \endcode
-*/
-
-/*!
\fn void QPainter::drawPolyline(const QPolygonF &points)
\overload
@@ -4943,45 +4897,6 @@ void QPainter::drawPolygon(const QPoint *points, int pointCount, Qt::FillRule fi
d->engine->drawPolygon(points, pointCount, QPaintEngine::PolygonDrawMode(fillRule));
}
-/*! \fn void QPainter::drawPolygon(const QPolygonF &polygon, bool winding, int index = 0,
- int count = -1)
- \compat
- \overload
-
- Use drawPolygon() combined with QPolygonF::constData() instead.
-
- \oldcode
- QPainter painter(this);
- painter.drawPolygon(polygon, winding, index, count);
- \newcode
- int pointCount = (count == -1) ? polygon.size() - index : count;
- int fillRule = winding ? Qt::WindingFill : Qt::OddEvenFill;
-
- QPainter painter(this);
- painter.drawPolygon( polygon.constData() + index, pointCount, fillRule);
- \endcode
-*/
-
-/*! \fn void QPainter::drawPolygon(const QPolygon &polygon, bool winding,
- int index = 0, int count = -1)
-
- \compat
- \overload
-
- Use drawPolygon() combined with QPolygon::constData() instead.
-
- \oldcode
- QPainter painter(this);
- painter.drawPolygon(polygon, winding, index, count);
- \newcode
- int pointCount = (count == -1) ? polygon.size() - index : count;
- int fillRule = winding ? Qt::WindingFill : Qt::OddEvenFill;
-
- QPainter painter(this);
- painter.drawPolygon( polygon.constData() + index, pointCount, fillRule);
- \endcode
-*/
-
/*! \fn void QPainter::drawPolygon(const QPolygonF &points, Qt::FillRule fillRule)
\overload
@@ -5047,48 +4962,6 @@ void QPainter::drawPolygon(const QPoint *points, int pointCount, Qt::FillRule fi
pen and brush.
*/
-/*!
- \fn void QPainter::drawConvexPolygon(const QPolygonF &polygon, int
- index, int count)
-
- \compat
- \overload
-
- Use drawConvexPolygon() combined with QPolygonF::constData()
- instead.
-
- \oldcode
- QPainter painter(this);
- painter.drawConvexPolygon(polygon, index, count);
- \newcode
- int pointCount = (count == -1) ? polygon.size() - index : count;
-
- QPainter painter(this);
- painter.drawConvexPolygon(polygon.constData() + index, pointCount);
- \endcode
-*/
-
-/*!
- \fn void QPainter::drawConvexPolygon(const QPolygon &polygon, int
- index, int count)
-
- \compat
- \overload
-
- Use drawConvexPolygon() combined with QPolygon::constData()
- instead.
-
- \oldcode
- QPainter painter(this);
- painter.drawConvexPolygon(polygon, index, count);
- \newcode
- int pointCount = (count == -1) ? polygon.size() - index : count;
-
- QPainter painter(this);
- painter.drawConvexPolygon(polygon.constData() + index, pointCount);
- \endcode
-*/
-
void QPainter::drawConvexPolygon(const QPoint *points, int pointCount)
{
#ifdef QT_DEBUG_DRAW
@@ -7334,35 +7207,6 @@ QRect QPainter::viewport() const
return QRect(d->state->vx, d->state->vy, d->state->vw, d->state->vh);
}
-/*! \fn bool QPainter::hasViewXForm() const
- \compat
-
- Use viewTransformEnabled() instead.
-*/
-
-/*! \fn bool QPainter::hasWorldXForm() const
- \compat
-
- Use worldMatrixEnabled() instead.
-*/
-
-/*! \fn void QPainter::resetXForm()
- \compat
-
- Use resetTransform() instead.
-*/
-
-/*! \fn void QPainter::setViewXForm(bool enabled)
- \compat
-
- Use setViewTransformEnabled() instead.
-*/
-
-/*! \fn void QPainter::setWorldXForm(bool enabled)
- \compat
-
- Use setWorldMatrixEnabled() instead.
-*/
/*!
Enables view transformations if \a enable is true, or disables
view transformations if \a enable is false.
@@ -7823,108 +7667,6 @@ void QPainterState::init(QPainter *p) {
}
/*!
- \fn void QPainter::setBackgroundColor(const QColor &color)
-
- Use setBackground() instead.
-*/
-
-/*!
- \fn const QColor &QPainter::backgroundColor() const
-
- Use background() and QBrush::color() instead.
-
- \oldcode
- QColor myColor = backgroundColor();
- \newcode
- QColor myColor = background().color();
- \endcode
-
- Note that the background can be a complex brush such as a texture
- or a gradient.
-*/
-
-/*!
- \fn void QPainter::drawText(int x, int y, const QString &text, int pos, int length)
- \compat
-
- Use drawText() combined with QString::mid() instead.
-
- \oldcode
- QPainter painter(this);
- painter.drawText(x, y, text, pos, length);
- \newcode
- QPainter painter(this);
- painter.drawText(x, y, text.mid(pos, length));
- \endcode
-*/
-
-/*!
- \fn void QPainter::drawText(const QPoint &point, const QString &text, int pos, int length)
- \compat
-
- Use drawText() combined with QString::mid() instead.
-
- \oldcode
- QPainter painter(this);
- painter.drawText(point, text, pos, length);
- \newcode
- QPainter painter(this);
- painter.drawText(point, text.mid(pos, length));
- \endcode
-*/
-
-/*!
- \fn void QPainter::drawText(int x, int y, const QString &text, int length)
- \compat
-
- Use drawText() combined with QString::left() instead.
-
- \oldcode
- QPainter painter(this);
- painter.drawText(x, y, text, length);
- \newcode
- QPainter painter(this);
- painter.drawText(x, y, text.left(length));
- \endcode
-*/
-
-/*!
- \fn void QPainter::drawText(const QPoint &point, const QString &text, int length)
- \compat
-
- Use drawText() combined with QString::left() instead.
-
- \oldcode
- QPainter painter(this);
- painter.drawText(point, text, length);
- \newcode
- QPainter painter(this);
- painter.drawText(point, text.left(length));
- \endcode
-*/
-
-/*!
- \fn bool QPainter::begin(QPaintDevice *device, const QWidget *init)
- \compat
-
- Use begin() instead.
-
- If the paint \a device is a QWidget, QPainter is initialized after
- the widget's settings automatically. Otherwise, you must call the
- initFrom() function to initialize the painters pen, background and
- font to the same as any given widget.
-
- \oldcode
- QPainter painter(this);
- painter.begin(device, init);
- \newcode
- QPainter painter(this);
- painter.begin(device);
- painter.initFrom(init);
- \endcode
-*/
-
-/*!
\fn void QPainter::drawImage(const QRectF &target, const QImage &image, const QRectF &source,
Qt::ImageConversionFlags flags)
@@ -8031,88 +7773,6 @@ void QPainterState::init(QPainter *p) {
*/
/*!
- \fn void QPainter::redirect(QPaintDevice *pdev, QPaintDevice *replacement)
-
- Use setRedirected() instead.
-*/
-
-/*!
- \fn QPaintDevice *QPainter::redirect(QPaintDevice *pdev)
-
- Use redirected() instead.
-*/
-
-/*!
- \fn QRect QPainter::boundingRect(const QRect &rectangle, int flags,
- const QString &text, int length)
- \compat
-
- Returns the bounding rectangle for the given \a length of the \a
- text constrained by the provided \a rectangle.
-
- Use boundingRect() combined with QString::left() instead.
-
- \oldcode
- QRect rectangle = boundingRect(rect, flags, text, length);
- \newcode
- QRect rectangle = boundingRect(rect, flags, text.left(length));
- \endcode
-*/
-
-/*!
- \fn void QPainter::drawText(const QRect &rectangle, int flags, const QString &text,
- int length, QRect *br)
- \compat
-
- Use drawText() combined with QString::left() instead.
-
- \oldcode
- QPainter painter(this);
- painter.drawText(rectangle, flags, text, length, br );
- \newcode
- QPainter painter(this);
- painter.drawText(rectangle, flags, text.left(length), br );
- \endcode
-*/
-
-/*!
- \fn QRect QPainter::boundingRect(int x, int y, int width, int height, int flags,
- const QString &text, int length);
-
- \compat
-
- Returns the bounding rectangle for the given \a length of the \a
- text constrained by the rectangle that begins at point (\a{x},
- \a{y}) with the given \a width and \a height.
-
- Use boundingRect() combined with QString::left() instead.
-
- \oldcode
- QRect rectangle = boundingRect(x, y, width, height, flags, text, length);
- \newcode
- QRect rectangle = boundingRect(x, y, width, height, flags, text.left(length));
- \endcode
-*/
-
-/*!
- \fn void QPainter::drawText(int x, int y, int width, int height, int flags,
- const QString &text, int length, QRect *br)
-
- \compat
-
- Use drawText() combined with QString::left() instead.
-
- \oldcode
- QPainter painter(this);
- painter.drawText(x, y, width, height, flags, text, length, br );
- \newcode
- QPainter painter(this);
- painter.drawText(x, y, width, height, flags, text.left(length), br );
- \endcode
-*/
-
-
-/*!
\class QPaintEngineState
\since 4.1
@@ -8765,252 +8425,4 @@ void qt_draw_helper(QPainterPrivate *p, const QPainterPath &path, QPainterPrivat
p->draw_helper(path, operation);
}
-/*! \fn Display *QPaintDevice::x11Display() const
- Use QX11Info::display() instead.
-
- \oldcode
- Display *display = widget->x11Display();
- \newcode
- Display *display = QX11Info::display();
- \endcode
-
- \sa QWidget::x11Info(), QX11Info::display()
-*/
-
-/*! \fn int QPaintDevice::x11Screen() const
- Use QX11Info::screen() instead.
-
- \oldcode
- int screen = widget->x11Screen();
- \newcode
- int screen = widget->x11Info().screen();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn void *QPaintDevice::x11Visual() const
- Use QX11Info::visual() instead.
-
- \oldcode
- void *visual = widget->x11Visual();
- \newcode
- void *visual = widget->x11Info().visual();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn int QPaintDevice::x11Depth() const
- Use QX11Info::depth() instead.
-
- \oldcode
- int depth = widget->x11Depth();
- \newcode
- int depth = widget->x11Info().depth();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn int QPaintDevice::x11Cells() const
- Use QX11Info::cells() instead.
-
- \oldcode
- int cells = widget->x11Cells();
- \newcode
- int cells = widget->x11Info().cells();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn Qt::HANDLE QPaintDevice::x11Colormap() const
- Use QX11Info::colormap() instead.
-
- \oldcode
- unsigned long screen = widget->x11Colormap();
- \newcode
- unsigned long screen = widget->x11Info().colormap();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn bool QPaintDevice::x11DefaultColormap() const
- Use QX11Info::defaultColormap() instead.
-
- \oldcode
- bool isDefault = widget->x11DefaultColormap();
- \newcode
- bool isDefault = widget->x11Info().defaultColormap();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn bool QPaintDevice::x11DefaultVisual() const
- Use QX11Info::defaultVisual() instead.
-
- \oldcode
- bool isDefault = widget->x11DefaultVisual();
- \newcode
- bool isDefault = widget->x11Info().defaultVisual();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn void *QPaintDevice::x11AppVisual(int screen)
- Use QX11Info::visual() instead.
-
- \oldcode
- void *visual = QPaintDevice::x11AppVisual(screen);
- \newcode
- void *visual = qApp->x11Info(screen).visual();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn Qt::HANDLE QPaintDevice::x11AppColormap(int screen)
- Use QX11Info::colormap() instead.
-
- \oldcode
- unsigned long colormap = QPaintDevice::x11AppColormap(screen);
- \newcode
- unsigned long colormap = qApp->x11Info(screen).colormap();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn Display *QPaintDevice::x11AppDisplay()
- Use QX11Info::display() instead.
-
- \oldcode
- Display *display = QPaintDevice::x11AppDisplay();
- \newcode
- Display *display = qApp->x11Info().display();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn int QPaintDevice::x11AppScreen()
- Use QX11Info::screen() instead.
-
- \oldcode
- int screen = QPaintDevice::x11AppScreen();
- \newcode
- int screen = qApp->x11Info().screen();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn int QPaintDevice::x11AppDepth(int screen)
- Use QX11Info::depth() instead.
-
- \oldcode
- int depth = QPaintDevice::x11AppDepth(screen);
- \newcode
- int depth = qApp->x11Info(screen).depth();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn int QPaintDevice::x11AppCells(int screen)
- Use QX11Info::cells() instead.
-
- \oldcode
- int cells = QPaintDevice::x11AppCells(screen);
- \newcode
- int cells = qApp->x11Info(screen).cells();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn Qt::HANDLE QPaintDevice::x11AppRootWindow(int screen)
- Use QX11Info::appRootWindow() instead.
-
- \oldcode
- unsigned long window = QPaintDevice::x11AppRootWindow(screen);
- \newcode
- unsigned long window = qApp->x11Info(screen).appRootWindow();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn bool QPaintDevice::x11AppDefaultColormap(int screen)
- Use QX11Info::defaultColormap() instead.
-
- \oldcode
- bool isDefault = QPaintDevice::x11AppDefaultColormap(screen);
- \newcode
- bool isDefault = qApp->x11Info(screen).defaultColormap();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn bool QPaintDevice::x11AppDefaultVisual(int screen)
- Use QX11Info::defaultVisual() instead.
-
- \oldcode
- bool isDefault = QPaintDevice::x11AppDefaultVisual(screen);
- \newcode
- bool isDefault = qApp->x11Info(screen).defaultVisual();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn void QPaintDevice::x11SetAppDpiX(int dpi, int screen)
- Use QX11Info::setAppDpiX() instead.
-*/
-
-/*! \fn void QPaintDevice::x11SetAppDpiY(int dpi, int screen)
- Use QX11Info::setAppDpiY() instead.
-*/
-
-/*! \fn int QPaintDevice::x11AppDpiX(int screen)
- Use QX11Info::appDpiX() instead.
-
- \oldcode
- bool isDefault = QPaintDevice::x11AppDpiX(screen);
- \newcode
- bool isDefault = qApp->x11Info(screen).appDpiX();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn int QPaintDevice::x11AppDpiY(int screen)
- Use QX11Info::appDpiY() instead.
-
- \oldcode
- bool isDefault = QPaintDevice::x11AppDpiY(screen);
- \newcode
- bool isDefault = qApp->x11Info(screen).appDpiY();
- \endcode
-
- \sa QWidget::x11Info(), QPixmap::x11Info()
-*/
-
-/*! \fn HDC QPaintDevice::getDC() const
- \internal
-*/
-
-/*! \fn void QPaintDevice::releaseDC(HDC) const
- \internal
-*/
-
-/*! \fn QWSDisplay *QPaintDevice::qwsDisplay()
- \internal
-*/
-
QT_END_NAMESPACE