aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2015-11-27 09:57:53 +0100
committerMitch Curtis <mitch.curtis@theqtcompany.com>2015-11-27 11:37:09 +0000
commitbb807b32b7e85bc4ae5c2d2b7c627e0e2bde90ff (patch)
treef713d7a043393ddac4cb413762218f362c4d821c /tests
parent94d33a6875f0b159f46841fb2d45bcda48522a91 (diff)
Remove pop-o-rama manual test
We will be working on new examples in cooperation with designers that we can use to manually test and demonstrate popup usage with. Change-Id: Ib3b2ffaa66f99698e1f27bec3ba0610da32bdd85 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/manual.pro1
-rw-r--r--tests/manual/pop-o-rama/CompletionPopup.qml126
-rw-r--r--tests/manual/pop-o-rama/ContextMenu.qml146
-rw-r--r--tests/manual/pop-o-rama/Dialog.qml134
-rw-r--r--tests/manual/pop-o-rama/MessageCenter.qml70
-rw-r--r--tests/manual/pop-o-rama/NotificationCenter.qml75
-rw-r--r--tests/manual/pop-o-rama/NotificationPopup.qml137
-rw-r--r--tests/manual/pop-o-rama/main.cpp56
-rw-r--r--tests/manual/pop-o-rama/main.qml190
-rw-r--r--tests/manual/pop-o-rama/pop-o-rama.pro19
-rw-r--r--tests/manual/pop-o-rama/qml.qrc11
11 files changed, 0 insertions, 965 deletions
diff --git a/tests/manual/manual.pro b/tests/manual/manual.pro
index 8f3eed0c..b974ae29 100644
--- a/tests/manual/manual.pro
+++ b/tests/manual/manual.pro
@@ -2,5 +2,4 @@ TEMPLATE = subdirs
SUBDIRS += \
gifs \
fonts \
- pop-o-rama \
testbench
diff --git a/tests/manual/pop-o-rama/CompletionPopup.qml b/tests/manual/pop-o-rama/CompletionPopup.qml
deleted file mode 100644
index 4fac895f..00000000
--- a/tests/manual/pop-o-rama/CompletionPopup.qml
+++ /dev/null
@@ -1,126 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples 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 The Qt Company Ltd 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$
-**
-****************************************************************************/
-
-import QtQuick 2.6
-import Qt.labs.templates 1.0 as T
-import Qt.labs.controls 1.0
-import QtQuick.Window 2.2
-
-
-T.Panel {
- id: popup
-
- property Item input
- property var model
-
- modal: true
-
- contentItem: Frame {
- id: frame
- padding: 6
- width: input.width
- implicitHeight: topPadding + contentHeight + bottomPadding
- contentHeight: completionList.contentHeight
- Keys.forwardTo: [completionList]
-
- contentItem: Item {
- ListView {
- id: completionList
- model: popup.model
- height: contentHeight
- Keys.onReturnPressed: {
- input.text = currentItem.text
- event.accepted = false
- }
- Keys.onEscapePressed: popup.hide()
- delegate: Text {
- text: modelData
- elide: Text.ElideMiddle
- color: ListView.isCurrentItem ? Theme.selectedTextColor : Theme.textColor
- width: frame.width - 2 * frame.padding
- MouseArea {
- anchors.fill: parent
- anchors.leftMargin: -frame.leftPadding
- anchors.rightMargin: -frame.rightPadding
- onClicked: frame.setInputTextAndDismiss(parent.text)
- }
- }
- highlight: Rectangle {
- x: -frame.leftPadding
- y: completionList.currentItem.y
- width: frame.width
- height: completionList.currentItem.height
- color: Theme.selectionColor
- }
- highlightFollowsCurrentItem: false
- }
- }
-
- frame: Rectangle {
- width: frame.width
- height: frame.height
- color: Theme.backgroundColor
- border.color: Theme.frameColor
- }
-
- background: null
-
- Connections {
- target: input
- onActiveFocusChanged: if (!input.activeFocus && popup.visible) frame.hide()
- onEditingFinished: if (popup.visible) popup.hide()
- onTextChanged: {
- if (input.text !== "" && !popup.visible) {
- var pos = input.mapToItem(Window.contentItem, 0, input.height + 3)
- frame.x = pos.x
- frame.y = pos.y
- popup.show()
- }
- }
- }
-
- function setInputTextAndDismiss(text) {
- input.text = text
- popup.hide()
- }
- }
-
- onPressedOutside: hide()
-}
diff --git a/tests/manual/pop-o-rama/ContextMenu.qml b/tests/manual/pop-o-rama/ContextMenu.qml
deleted file mode 100644
index 0b95ff6d..00000000
--- a/tests/manual/pop-o-rama/ContextMenu.qml
+++ /dev/null
@@ -1,146 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples 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 The Qt Company Ltd 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$
-**
-****************************************************************************/
-
-import QtQuick 2.6
-import QtQuick.Window 2.2
-import Qt.labs.templates 1.0 as T
-import Qt.labs.controls 1.0
-
-T.Panel {
- id: contextMenu
-
- property Item target
- property alias x: panelControl.x
- property alias y: panelControl.y
-
- contentItem: T.Frame {
- id: panelControl
-
- Theme.backgroundColor: "#444"
- Theme.frameColor: "#666"
- Theme.textColor: "#eee"
- Theme.disabledColor: "#777"
- Theme.pressColor: "#33ffffff"
- Theme.baseColor: "#444"
-
- padding: 6
- implicitWidth: leftPadding + contentWidth + rightPadding
- implicitHeight: topPadding + contentHeight + bottomPadding
- contentWidth: buttonRow.width
- contentHeight: buttonRow.height
-
- contentItem: Item {
- Row {
- id: buttonRow
- spacing: 12
-
- ToolButton {
- text: "Cut"
- onClicked: { target.cut(); contextMenu.hide() }
- enabled: target && (target["selectedText"] !== "" && !target["readOnly"])
- }
- ToolButton {
- text: "Copy"
- onClicked: { target.copy(); contextMenu.hide() }
- enabled: target && target["selectedText"] !== ""
- }
- ToolButton {
- text: "Paste"
- onClicked: { target.paste(); contextMenu.hide() }
- enabled: target && target["canPaste"] === true
- }
- ToolButton {
- text: "Select"
- onClicked: { target.selectWord(); contextMenu.hide() }
- enabled: target && target["text"] !== ""
- }
- ToolButton {
- text: "Select All"
- onClicked: { target.selectAll(); contextMenu.hide() }
- enabled: target && target["text"] !== ""
- }
- }
- }
-
- frame: Rectangle {
- width: parent.width
- height: parent.height
- color: Theme.backgroundColor
- border.color: Theme.frameColor
- radius: 5
- }
-
- background: null
-
- Connections {
- target: contextMenu.target
- ignoreUnknownSignals: true
-
- onActiveFocusChanged: {
- if (!target.activeFocus && contextMenu.visible)
- contextMenu.hide()
- }
-
- onPressAndHold: {
- var m = 3
- var pos = target.mapToItem(target.Window.contentItem, mouse.x - panelControl.width / 2, -panelControl.height - m)
- contextMenu.x = Math.max(m, Math.min(target.Window.width - panelControl.width - m, pos.x))
- contextMenu.y = pos.y
- contextMenu.show()
- }
- }
- }
-
- onAboutToShow: {
- if (target)
- target.cursorVisible = false
- }
-
- onAboutToHide: {
- if (target) {
- var t = target
- target.cursorVisible = Qt.binding(function() {
- return t.activeFocus && t.selectedText === ""
- })
- }
- }
-
- onPressedOutside: hide()
-}
diff --git a/tests/manual/pop-o-rama/Dialog.qml b/tests/manual/pop-o-rama/Dialog.qml
deleted file mode 100644
index b355c330..00000000
--- a/tests/manual/pop-o-rama/Dialog.qml
+++ /dev/null
@@ -1,134 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.6
-import QtQuick.Window 2.2
-import Qt.labs.templates 1.0 as T
-import Qt.labs.controls 1.0
-
-T.Panel {
- id: root
-
- default property alias contentData: dialogFrame.contentData
-
- focus: true
- modal: true
-
- contentItem: Frame {
- id: dialogFrame
-
- padding: 6
- implicitWidth: leftPadding + contentWidth + rightPadding
- implicitHeight: topPadding + contentHeight + bottomPadding
- contentWidth: contentItem.__singleChild ? contentItem.children[0].width : 0
- contentHeight: contentItem.__singleChild ? contentItem.children[0].height : 0
-
- focus: true
- opacity: 0
- x: (Window.width - width) / 2
- y: (Window.height - height) / 2
-
- contentItem: FocusScope {
- id: ct
- readonly property bool __singleChild: children.length === 1
- scale: 0.1
- focus: true
- x: dialogFrame.leftPadding
- y: dialogFrame.topPadding
- }
-
- frame: Rectangle {
- id: fr
- width: dialogFrame.width
- height: dialogFrame.height
- scale: 0.1
- color: Theme.backgroundColor
- border.color: Theme.frameColor
- border.width: 1
- radius: 3
- }
-
- background: Rectangle {
- id: bg
- x: -dialogFrame.x
- y: -dialogFrame.y
- width: Window.width
- height: Window.height
- color: "black"
- opacity: 0.3
- }
- }
-
- showTransition: Transition {
- ScaleAnimator {
- target: fr
- duration: 100
- to: 1.0
- }
-
- ScaleAnimator {
- target: ct
- duration: 100
- to: 1.0
- }
-
- OpacityAnimator {
- target: dialogFrame
- duration: 100
- to: 1.0
- }
- }
-
- hideTransition: Transition {
- ScaleAnimator {
- target: fr
- duration: 100
- from: 1.0; to: 0.1
- }
-
- ScaleAnimator {
- target: ct
- duration: 100
- from: 1.0; to: 0.1
- }
-
- OpacityAnimator {
- target: dialogFrame
- duration: 200
- from: 1.0; to: 0
- }
- }
-}
diff --git a/tests/manual/pop-o-rama/MessageCenter.qml b/tests/manual/pop-o-rama/MessageCenter.qml
deleted file mode 100644
index 68d455e6..00000000
--- a/tests/manual/pop-o-rama/MessageCenter.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples 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 The Qt Company Ltd 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$
-**
-****************************************************************************/
-
-import QtQuick 2.6
-
-Timer {
- interval: 500
- running: true
- repeat: true
-
- property int i: 0
- readonly property var messages: [
- "Wi nøt trei a høliday in Sweden this yër ?",
- "See the løveli lakes",
- "The wøndërful telephøne system",
- "And mäni interesting furry animals",
- "Including the majestik møøse",
- "A Møøse once bit my sister...",
- "No realli! She was Karving her initials øn the møøse with the sharpened end of an interspace tøøthbrush given her by Svenge — her brother-in-law — an Oslo dentist and star of many Norwegian møvies: \"The Høt Hands of an Oslo Dentist\", \"Fillings of Passion\", \"The Huge Mølars of Horst Nordfink\"... ",
- "Mynd you, møøse bites Kan be pretty nasti..."
- ]
-
- signal messageReceived(string sender, string message)
-
- onTriggered: {
- messageReceived("Swedish Tourism Office", messages[i])
- if (i === messages.length - 1)
- i = 0
- else
- i++
- interval = 3000 + 4000 * Math.random()
- }
-}
diff --git a/tests/manual/pop-o-rama/NotificationCenter.qml b/tests/manual/pop-o-rama/NotificationCenter.qml
deleted file mode 100644
index 6c1cb6a4..00000000
--- a/tests/manual/pop-o-rama/NotificationCenter.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples 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 The Qt Company Ltd 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$
-**
-****************************************************************************/
-
-import QtQuick 2.6
-import QtQuick.Window 2.2
-import Qt.labs.controls 1.0
-
-QtObject {
- id: contextMenu
-
- property Window window
-
- property Component popupComponent: NotificationPopup {
- id: popup
- property Timer fadeoutTimer: Timer {
- interval: 8000
- onTriggered: popup.hide()
- }
- onAboutToShow: fadeoutTimer.start()
- onVisibleChanged: {
- if (visible)
- return;
- if (contentItem.y < minAvailableY)
- minAvailableY = contentItem.y
- destroy()
- }
- }
-
- property int minAvailableY: spacing
- readonly property int spacing: 6
-
- function notify(sender, message) {
- var np = popupComponent.createObject(window, { "sender": sender, "text": message })
- np.contentItem.y = minAvailableY
- minAvailableY += np.contentItem.height + spacing
- np.show()
- }
-}
diff --git a/tests/manual/pop-o-rama/NotificationPopup.qml b/tests/manual/pop-o-rama/NotificationPopup.qml
deleted file mode 100644
index 79eb37ac..00000000
--- a/tests/manual/pop-o-rama/NotificationPopup.qml
+++ /dev/null
@@ -1,137 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples 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 The Qt Company Ltd 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$
-**
-****************************************************************************/
-
-import QtQuick 2.6
-import QtQuick.Window 2.2
-import Qt.labs.templates 1.0 as T
-import Qt.labs.controls 1.0
-import "qrc:/shared"
-
-T.Panel {
- id: popup
-
- property alias sender: senderLabel.text
- property alias text: label.text
-
- contentItem: T.Frame {
- id: panelControl
-
- x: Window.width
- y: topPadding
-
- Theme.backgroundColor: "#444"
- Theme.frameColor: "#666"
- Theme.textColor: "#eee"
- Theme.disabledColor: "#777"
- Theme.pressColor: "#33ffffff"
- Theme.baseColor: "#444"
-
- padding: 12
- implicitWidth: leftPadding + contentWidth + rightPadding
- implicitHeight: topPadding + contentHeight + bottomPadding
- contentWidth: row.width
- contentHeight: label.font.pixelSize * 4
-
- contentItem: Item {
- Row {
- id: row
- spacing: panelControl.rightPadding
- FontAwesomeIcon {
- y: -label.font.pixelSize / 4
- iconId: FontAwesome.comment
- size: 36
- color: Theme.textColor
- }
-
- Column {
- spacing: label.font.pixelSize / 2
- Label {
- id: senderLabel
- width: label.width
- elide: Text.ElideRight
- font.bold: true
- }
-
- Label {
- id: label
- width: 200
- wrapMode: Text.WordWrap
- maximumLineCount: 2
- elide: Text.ElideRight
- }
- }
- }
- }
-
- frame: Rectangle {
- width: parent.width
- height: parent.height
- color: Theme.backgroundColor
- border.color: Theme.frameColor
- radius: 5
- opacity: 0.8
- }
-
- background: null
- }
-
- showTransition: Transition {
- OpacityAnimator {
- target: panelControl
- from: 0; to: 1
- duration: 200
- }
-
- XAnimator {
- target: panelControl
- from: panelControl.Window.width
- to: panelControl.Window.width - panelControl.width - panelControl.rightPadding
- duration: 300
- }
- }
-
- hideTransition: Transition {
- OpacityAnimator {
- target: panelControl
- from: 1; to: 0
- duration: 200
- }
- }
-}
diff --git a/tests/manual/pop-o-rama/main.cpp b/tests/manual/pop-o-rama/main.cpp
deleted file mode 100644
index d939f356..00000000
--- a/tests/manual/pop-o-rama/main.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples 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 The Qt Company Ltd 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 <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
-#ifdef USE_VKB
-// qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
-#endif // USE_VKB
-
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
-
- return app.exec();
-}
diff --git a/tests/manual/pop-o-rama/main.qml b/tests/manual/pop-o-rama/main.qml
deleted file mode 100644
index 5d215d6e..00000000
--- a/tests/manual/pop-o-rama/main.qml
+++ /dev/null
@@ -1,190 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples 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 The Qt Company Ltd 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$
-**
-****************************************************************************/
-
-import QtQuick 2.6
-import QtQuick.Window 2.2
-import Qt.labs.templates 1.0 as T
-import Qt.labs.controls 1.0
-//import QtQuick.Enterprise.VirtualKeyboard 1.3
-
-ApplicationWindow {
- id: window
- title: "Qt Quick Controls - Pop-o-rama!"
- width: 640
- height: 800
- visible: true
-
- ContextMenu {
- target: window.activeFocusItem
- }
-
- Column {
- y: 100
- width: parent.width
- spacing: 16
-
- Label {
- id: titleLabel
- text: "Welcome to Pop-O-Rama!"
- x: (Window.width - implicitWidth) / 3
- font.bold: true
- font.pixelSize: 24
- height: 2 * font.pixelSize
- }
-
- Label {
- text: "All the TextField controls in this app have a context menu. Long press to make it appear."
- anchors.left: titleLabel.left
- width: Window.width - x - 12
- wrapMode: Label.WordWrap
- }
-
- TextField {
- id: someTextField
- focus: true
- width: 200
- anchors.left: titleLabel.left
- placeholderText: "I should lose focus when a popup shows"
- }
-
- Button {
- id: pb
- text: "Secret Dialog"
- anchors.left: someTextField.left
- onPressed: dialog.show()
-
- Label {
- text: "Click this button to see our secret dialog."
- anchors.left: parent.right
- anchors.leftMargin: 12
- anchors.baseline: parent.label.baseline
- }
-
- Dialog {
- id: dialog
-
- Column {
- spacing: 12
-
- Label {
- text: "Secret Dialog!"
- font.pixelSize: 14
- font.bold: true
- anchors.horizontalCenter: parent.horizontalCenter
- }
-
- Label {
- text: "Notice how tab navigation stays in the dialog."
- width: parent.width
- wrapMode: Label.WordWrap
- }
-
- TextField {
- id: firstTextField
- width: 200
- focus: true
- placeholderText: "User name"
-
- Keys.forwardTo: [completionPopup.contentItem]
- CompletionPopup {
- id: completionPopup
- input: firstTextField
- model: ["Eric", "Graham", "John", "Michael", "Terry"]
- }
- }
-
- TextField {
- width: 200
- placeholderText: "Password"
- echoMode: TextField.Password
- }
-
- Row {
- spacing: 12
- anchors.horizontalCenter: parent.horizontalCenter
- Button {
- text: "Cancel"
- width: 80
- onClicked: dialog.hide()
- }
- Button {
- text: "OK"
- width: 80
- onClicked: dialog.hide()
- }
- }
- }
-
- onAboutToShow: firstTextField.focus = true
- }
- }
- }
-
- NotificationCenter {
- id: notificationCenter
-
- window: window
- }
-
- MessageCenter {
- id: messageCenter
-
- onMessageReceived: notificationCenter.notify(sender, message)
- }
-
-// T.Panel {
-// id: inputPanel
-// modal: false
-// contentItem: InputPanel {
-// id: actualPanel
-// width: window.width
-// y: window.height - (Qt.inputMethod.visible ? height : 0)
-// Behavior on y { NumberAnimation { duration: 250; easing.type: Easing.InOutQuad } }
-// z: 1000
-
-// Component.onCompleted: inputPanel.show()
-
-//// Connections {
-//// target: Qt.inputMethod
-//// onVisibleChanged: { if (visible) inputPanel.show(); else inputPanel.hide() }
-//// }
-// }
-// }
-}
diff --git a/tests/manual/pop-o-rama/pop-o-rama.pro b/tests/manual/pop-o-rama/pop-o-rama.pro
deleted file mode 100644
index d979b043..00000000
--- a/tests/manual/pop-o-rama/pop-o-rama.pro
+++ /dev/null
@@ -1,19 +0,0 @@
-TEMPLATE = app
-TARGET = pop-o-rama
-QT += quick
-
-CONFIG += use-vkb
-
-SOURCES += \
- main.cpp
-
-OTHER_FILES += \
- main.qml
-
-RESOURCES += \
- ../shared/shared.qrc \
- qml.qrc
-
-use-vkb {
- DEFINES += USE_VKB
-}
diff --git a/tests/manual/pop-o-rama/qml.qrc b/tests/manual/pop-o-rama/qml.qrc
deleted file mode 100644
index 975b65e4..00000000
--- a/tests/manual/pop-o-rama/qml.qrc
+++ /dev/null
@@ -1,11 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- <file>CompletionPopup.qml</file>
- <file>ContextMenu.qml</file>
- <file>Dialog.qml</file>
- <file>NotificationPopup.qml</file>
- <file>MessageCenter.qml</file>
- <file>NotificationCenter.qml</file>
- </qresource>
-</RCC>