From 9fd90b04a33293bac4d840e1f2e10f9c42b3ec13 Mon Sep 17 00:00:00 2001 From: Venugopal Shivashankar Date: Fri, 8 Jun 2018 14:59:15 +0200 Subject: Doc: Move the code snippets to a separate snippet file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I17671563f2beebe16ae1d08552854eaf44ae43ee Reviewed-by: Topi Reiniƶ --- examples/quick/imageprovider/imageprovider.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'examples/quick/imageprovider') diff --git a/examples/quick/imageprovider/imageprovider.cpp b/examples/quick/imageprovider/imageprovider.cpp index 662bd8bb70..2d927ea79a 100644 --- a/examples/quick/imageprovider/imageprovider.cpp +++ b/examples/quick/imageprovider/imageprovider.cpp @@ -56,7 +56,6 @@ #include #include -//![0] class ColorImageProvider : public QQuickImageProvider { public: @@ -75,7 +74,6 @@ public: QPixmap pixmap(requestedSize.width() > 0 ? requestedSize.width() : width, requestedSize.height() > 0 ? requestedSize.height() : height); pixmap.fill(QColor(id).rgba()); -//![0] // write the color name QPainter painter(&pixmap); @@ -87,11 +85,9 @@ public: painter.scale(requestedSize.width() / width, requestedSize.height() / height); painter.drawText(QRectF(0, 0, width, height), Qt::AlignCenter, id); -//![1] return pixmap; } }; -//![1] class ImageProviderExtensionPlugin : public QQmlExtensionPlugin -- cgit v1.2.3