summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmap.cpp
diff options
context:
space:
mode:
authoraavit <qt_aavit@ovi.com>2012-09-03 13:45:33 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-04 02:03:23 +0200
commitce2a8bdc13891cf1f53863bd5cd22d1a8fd6aae1 (patch)
tree8b3a90fb220d0ac9f8e034aac4e22c3f9cbf87f6 /src/gui/image/qpixmap.cpp
parente3224554272600a22fd9d22bdb754832b5127da2 (diff)
Doc: fix yet more errors reported by qdoc
Change-Id: I67ac081ce95235912784bbbc347dd8f80fdebbde Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
Diffstat (limited to 'src/gui/image/qpixmap.cpp')
-rw-r--r--src/gui/image/qpixmap.cpp40
1 files changed, 25 insertions, 15 deletions
diff --git a/src/gui/image/qpixmap.cpp b/src/gui/image/qpixmap.cpp
index 95b8df2f73..a082cf426e 100644
--- a/src/gui/image/qpixmap.cpp
+++ b/src/gui/image/qpixmap.cpp
@@ -832,25 +832,28 @@ bool QPixmap::doImageIO(QImageWriter *writer, int quality) const
return writer->write(toImage());
}
-/*!
- \fn void QPixmap::fill(const QPaintDevice *device, int x, int y)
- \overload
+/*!
\obsolete
- Fills the pixmap with the \a device's background color or pixmap.
- The given point, (\a x, \a y), defines an offset in widget
- coordinates to which the pixmap's top-left pixel will be mapped
- to.
+ Use QPainter or the fill(QColor) overload instead.
*/
-void QPixmap::fill(const QPaintDevice *, const QPoint &)
+void QPixmap::fill(const QPaintDevice *device, const QPoint &p)
{
qWarning() << "QPixmap::fill(const QPaintDevice *device, const QPoint &offset) is deprecated, ignored";
}
/*!
+ \fn void QPixmap::fill(const QPaintDevice *device, int x, int y)
+ \obsolete
+
+ Use QPainter or the fill(QColor) overload instead.
+*/
+
+
+/*!
Fills the pixmap with the given \a color.
The effect of this function is undefined when the pixmap is
@@ -931,6 +934,11 @@ static void sendResizeEvents(QWidget *target)
}
#endif
+/*!
+ \obsolete
+
+ Use QWidget::grab() instead.
+*/
QPixmap QPixmap::grabWidget(QObject *widget, const QRect &rectangle)
{
QPixmap pixmap;
@@ -943,6 +951,13 @@ QPixmap QPixmap::grabWidget(QObject *widget, const QRect &rectangle)
return pixmap;
}
+/*!
+ \fn QPixmap QPixmap::grabWidget(QObject *widget, int x, int y, int w, int h)
+ \obsolete
+
+ Use QWidget::grab() instead.
+*/
+
/*****************************************************************************
QPixmap stream functions
*****************************************************************************/
@@ -1215,11 +1230,6 @@ QPixmap QPixmap::transformed(const QMatrix &matrix, Qt::TransformationMode mode)
QToolButton). QLabel has a pixmap property, whereas
QAbstractButton has an icon property.
- In addition to the ordinary constructors, a QPixmap can be
- constructed using the static grabWidget() and grabWindow()
- functions which creates a QPixmap and paints the given widget, or
- window, into it.
-
QPixmap objects can be passed around by value since the QPixmap
class uses implicit data sharing. For more information, see the \l
{Implicit Data Sharing} documentation. QPixmap objects can also be
@@ -1634,13 +1644,13 @@ QDebug operator<<(QDebug dbg, const QPixmap &r)
/*!
\fn QPixmap QPixmap::alphaChannel() const
- Use QImage::alphaChannel() instead.
+ Most use cases for this can be achieved using a QPainter and QPainter::CompositionMode instead.
*/
/*!
\fn void QPixmap::setAlphaChannel(const QPixmap &p)
- Use QImage::setAlphaChannel() for \a p instead.
+ Most use cases for this can be achieved using \a p with QPainter and QPainter::CompositionMode instead.
*/
QT_END_NAMESPACE