diff options
author | Sze Howe Koh <szehowe.koh@gmail.com> | 2014-04-04 22:39:18 +0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-14 13:45:17 +0200 |
commit | ae2d5e0e0fdbc0a809592a0f6bf003302fa6d99c (patch) | |
tree | 42ac941f759f2ae989fb8762af59496bfa370ae3 | |
parent | bd11d74a66db4e72e8f1266c7eae833a4fcd5f4b (diff) | |
download | qtdoc-ae2d5e0e0fdbc0a809592a0f6bf003302fa6d99c.tar.gz |
Doc: Remove QX11EmbedContainer/QX11EmbedWidget snippets
- These classes no longer exist in Qt 5
- These snipets are not actually used in current docs
Change-Id: I6e83052c66c438be468f75f049041ab9fc0b5d20
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
-rw-r--r-- | doc/src/snippets/qx11embedcontainer/qx11embedcontainer.pro | 1 | ||||
-rw-r--r-- | doc/src/snippets/qx11embedwidget/embedwidget.cpp | 66 | ||||
-rw-r--r-- | doc/src/snippets/qx11embedwidget/embedwidget.h | 65 | ||||
-rw-r--r-- | doc/src/snippets/qx11embedwidget/qx11embedwidget.pro | 3 | ||||
-rw-r--r-- | doc/src/snippets/snippets.pro | 2 |
5 files changed, 0 insertions, 137 deletions
diff --git a/doc/src/snippets/qx11embedcontainer/qx11embedcontainer.pro b/doc/src/snippets/qx11embedcontainer/qx11embedcontainer.pro deleted file mode 100644 index bba41b9c..00000000 --- a/doc/src/snippets/qx11embedcontainer/qx11embedcontainer.pro +++ /dev/null @@ -1 +0,0 @@ -SOURCES = main.cpp diff --git a/doc/src/snippets/qx11embedwidget/embedwidget.cpp b/doc/src/snippets/qx11embedwidget/embedwidget.cpp deleted file mode 100644 index e4cd5a38..00000000 --- a/doc/src/snippets/qx11embedwidget/embedwidget.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/legal -** -** This file is part of the documentation of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** You may use this file under the terms of the BSD license as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names -** of its contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include <QtGui> - -#include "embedwidget.h" - -EmbedWidget::EmbedWidget(QWidget *parent) - : QX11EmbedWidget(parent) -{ - gradient = QRadialGradient(100, 100, 90, 60, 60); - gradient.setColorAt(0.0, Qt::white); - gradient.setColorAt(0.9, QColor(192, 192, 255)); - gradient.setColorAt(1.0, QColor(0, 32, 64)); -} - -QSize EmbedWidget::sizeHint() const -{ - return QSize(200, 200); -} - -void EmbedWidget::paintEvent(QPaintEvent *event) -{ - QPainter painter; - painter.begin(this); - painter.setRenderHint(QPainter::Antialiasing); - painter.fillRect(event->rect(), QBrush(gradient)); - painter.end(); -} diff --git a/doc/src/snippets/qx11embedwidget/embedwidget.h b/doc/src/snippets/qx11embedwidget/embedwidget.h deleted file mode 100644 index c20d3aec..00000000 --- a/doc/src/snippets/qx11embedwidget/embedwidget.h +++ /dev/null @@ -1,65 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/legal -** -** This file is part of the documentation of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** You may use this file under the terms of the BSD license as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names -** of its contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef EMBEDWIDGET_H -#define EMBEDWIDGET_H - -#include <QRadialGradient> -#include <QSize> -#include <QX11EmbedWidget> - -class QPaintEvent; - -class EmbedWidget : public QX11EmbedWidget -{ - Q_OBJECT - -public: - EmbedWidget(QWidget *parent = 0); - QSize sizeHint() const; - -protected: - void paintEvent(QPaintEvent *event); - -private: - QRadialGradient gradient; -}; - -#endif diff --git a/doc/src/snippets/qx11embedwidget/qx11embedwidget.pro b/doc/src/snippets/qx11embedwidget/qx11embedwidget.pro deleted file mode 100644 index b72e0adf..00000000 --- a/doc/src/snippets/qx11embedwidget/qx11embedwidget.pro +++ /dev/null @@ -1,3 +0,0 @@ -HEADERS = embedwidget.h -SOURCES = embedwidget.cpp \ - main.cpp diff --git a/doc/src/snippets/snippets.pro b/doc/src/snippets/snippets.pro index 0bda06eb..08f21c8d 100644 --- a/doc/src/snippets/snippets.pro +++ b/doc/src/snippets/snippets.pro @@ -69,8 +69,6 @@ SUBDIRS = brush \ qtreewidgetitemiterator-using \ qtreewidget-using \ quiloader \ - qx11embedcontainer \ - qx11embedwidget \ qxmlschema \ qxmlschemavalidator \ reading-selections \ |