From 0e341948ae6ab993f9d56f81809e71b8a9cc753d Mon Sep 17 00:00:00 2001 From: Casper van Donderen Date: Mon, 17 Oct 2011 14:18:42 +0200 Subject: Remove stale documentation. Change-Id: I85139e0334b648bee0d18129cef9387dcc6c3222 Reviewed-by: Jerome Pasion --- src/gui/painting/qbackingstore.cpp | 34 +++++++++----------------- src/gui/painting/qbrush.cpp | 8 ------ src/gui/painting/qcolor.cpp | 33 ------------------------- src/gui/painting/qmatrix.cpp | 20 --------------- src/gui/painting/qplatformbackingstore_qpa.cpp | 32 ++++++++++-------------- 5 files changed, 25 insertions(+), 102 deletions(-) (limited to 'src/gui/painting') diff --git a/src/gui/painting/qbackingstore.cpp b/src/gui/painting/qbackingstore.cpp index f69a2e4ff6..fa29589508 100644 --- a/src/gui/painting/qbackingstore.cpp +++ b/src/gui/painting/qbackingstore.cpp @@ -71,29 +71,7 @@ public: \brief The QBackingStore class provides the drawing area for top-level windows. */ - -/*! - \fn void QBackingStore::beginPaint(const QRegion ®ion) - - This function is called before painting onto the surface begins, - with the \a region in which the painting will occur. - - \sa endPaint(), paintDevice() -*/ - /*! - \fn void QBackingStore::endPaint(const QRegion ®ion) - - This function is called after painting onto the surface has ended, - with the \a region in which the painting was performed. - - \sa beginPaint(), paintDevice() -*/ - -/*! - \fn void QBackingStore::flush(QWindow *window, const QRegion ®ion, - const QPoint &offset) - Flushes the given \a region from the specified \a window onto the screen. @@ -142,11 +120,23 @@ QWindow* QBackingStore::window() const return d_ptr->window; } +/*! + This function is called before painting onto the surface begins, + with the \a region in which the painting will occur. + + \sa endPaint(), paintDevice() +*/ + void QBackingStore::beginPaint(const QRegion ®ion) { d_ptr->platformBackingStore->beginPaint(region); } +/*! + This function is called after painting onto the surface has ended. + + \sa beginPaint(), paintDevice() +*/ void QBackingStore::endPaint() { d_ptr->platformBackingStore->endPaint(); diff --git a/src/gui/painting/qbrush.cpp b/src/gui/painting/qbrush.cpp index 05f191dac6..d1130a8812 100644 --- a/src/gui/painting/qbrush.cpp +++ b/src/gui/painting/qbrush.cpp @@ -951,14 +951,6 @@ bool QBrush::operator==(const QBrush &b) const } } -/*! - \fn QBrush::operator const QColor&() const - - Returns the brush's color. - - Use color() instead. -*/ - #ifndef QT_NO_DEBUG_STREAM /*! \internal diff --git a/src/gui/painting/qcolor.cpp b/src/gui/painting/qcolor.cpp index 8234fa19f6..df2aa1ffe8 100644 --- a/src/gui/painting/qcolor.cpp +++ b/src/gui/painting/qcolor.cpp @@ -862,13 +862,6 @@ void QColor::getRgb(int *r, int *g, int *b, int *a) const *a = ct.argb.alpha >> 8; } -/*! - \obsolete - \fn void QColor::getRgba(int *r, int *g, int *b, int *a) const - - Use getRgb() instead. -*/ - /*! \fn void QColor::setRgbF(qreal r, qreal g, qreal b, qreal a) @@ -921,13 +914,6 @@ void QColor::setRgb(int r, int g, int b, int a) ct.argb.pad = 0; } -/*! - \obsolete - \fn void QColor::setRgba(int r, int g, int b, int a) - - Use setRgb() instead. -*/ - /*! \fn QRgb QColor::rgba() const @@ -2596,25 +2582,6 @@ QDataStream &operator>>(QDataStream &stream, QColor &color) the alpha-channel is ignored. */ -/*! - \fn QColor::QColor(int x, int y, int z, Spec colorSpec) - - Use one of the other QColor constructors, or one of the static convenience - functions, instead. -*/ - -/*! - \fn QColor::rgb(int *r, int *g, int *b) const - - Use getRgb() instead. -*/ - -/*! - \fn QColor::hsv(int *h, int *s, int *v) const - - Use getHsv() instead. -*/ - /*! \fn QColor QColor::convertTo(Spec colorSpec) const diff --git a/src/gui/painting/qmatrix.cpp b/src/gui/painting/qmatrix.cpp index 767706a5bc..41278920cb 100644 --- a/src/gui/painting/qmatrix.cpp +++ b/src/gui/painting/qmatrix.cpp @@ -938,14 +938,6 @@ QMatrix &QMatrix::rotate(qreal a) Returns the matrix's determinant. */ -/*! - \fn QMatrix QMatrix::invert(bool *invertible) const - - Returns an inverted copy of this matrix. - - Use the inverted() function instead. -*/ - /*! Returns an inverted copy of this matrix. @@ -1165,18 +1157,6 @@ QDebug operator<<(QDebug dbg, const QMatrix &m) } #endif -/*! - \fn QRect QMatrix::map(const QRect &rect) const - \compat - - Creates and returns a QRect object that is a copy of the given - rectangle, mapped into the coordinate system defined by this - matrix. - - Use the mapRect() function instead. -*/ - - /*! \fn bool qFuzzyCompare(const QMatrix& m1, const QMatrix& m2) diff --git a/src/gui/painting/qplatformbackingstore_qpa.cpp b/src/gui/painting/qplatformbackingstore_qpa.cpp index fa85661f31..2c0053af86 100644 --- a/src/gui/painting/qplatformbackingstore_qpa.cpp +++ b/src/gui/painting/qplatformbackingstore_qpa.cpp @@ -69,25 +69,6 @@ public: windows. */ - -/*! - \fn void QPlatformBackingStore::beginPaint(const QRegion ®ion) - - This function is called before painting onto the surface begins, - with the \a region in which the painting will occur. - - \sa endPaint(), paintDevice() -*/ - -/*! - \fn void QPlatformBackingStore::endPaint(const QRegion ®ion) - - This function is called after painting onto the surface has ended, - with the \a region in which the painting was performed. - - \sa beginPaint(), paintDevice() -*/ - /*! \fn void QPlatformBackingStore::flush(QWindow *window, const QRegion ®ion, const QPoint &offset) @@ -129,10 +110,23 @@ QWindow* QPlatformBackingStore::window() const return d_ptr->window; } +/*! + This function is called before painting onto the surface begins, + with the \a region in which the painting will occur. + + \sa endPaint(), paintDevice() +*/ + void QPlatformBackingStore::beginPaint(const QRegion &) { } +/*! + This function is called after painting onto the surface has ended. + + \sa beginPaint(), paintDevice() +*/ + void QPlatformBackingStore::endPaint() { } -- cgit v1.2.3