blob: 76c5414474eeba5068ef6c0279c303971c08af41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (C) 2016 Pelagicore AB
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "layouttesthelper.h"
#include <QtTest/qtest.h>
LayoutTestHelper::LayoutTestHelper()
{
component.reset(new QQmlComponent(&engine));
component->setData("\
import QtQuick 2.8 \n \
import QtQuick.Window 2.2 \n \
import QtQuick.VirtualKeyboard 2.1 \n \
import QtQuick.VirtualKeyboard.Settings 2.1 \n \
Window { \
property var settings: VirtualKeyboardSettings; \
InputPanel { \
id: inputPanel \
} \
}", QUrl());
window.reset(qobject_cast<QQuickWindow*>(component->create()));
QVERIFY2(component->status() == QQmlComponent::Ready, qPrintable(component->errorString()));
QVERIFY(window);
}
|