mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-04 16:25:27 +08:00
qt 6.5.1 original
This commit is contained in:
13
tests/auto/gui/painting/qpainterpathstroker/CMakeLists.txt
Normal file
13
tests/auto/gui/painting/qpainterpathstroker/CMakeLists.txt
Normal file
@ -0,0 +1,13 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
#####################################################################
|
||||
## tst_qpainterpathstroker Test:
|
||||
#####################################################################
|
||||
|
||||
qt_internal_add_test(tst_qpainterpathstroker
|
||||
SOURCES
|
||||
tst_qpainterpathstroker.cpp
|
||||
LIBRARIES
|
||||
Qt::Gui
|
||||
)
|
@ -0,0 +1,32 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
|
||||
#include <QTest>
|
||||
|
||||
#include <qfile.h>
|
||||
#include <QPainterPathStroker>
|
||||
#include <qmath.h>
|
||||
|
||||
class tst_QPainterPathStroker : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
private slots:
|
||||
void strokeEmptyPath();
|
||||
};
|
||||
|
||||
void tst_QPainterPathStroker::strokeEmptyPath()
|
||||
{
|
||||
QPainterPath path;
|
||||
path.moveTo(10, 10);
|
||||
path.lineTo(10, 10);
|
||||
QPainterPathStroker stroker;
|
||||
QCOMPARE(stroker.createStroke(path), path);
|
||||
}
|
||||
|
||||
QTEST_APPLESS_MAIN(tst_QPainterPathStroker)
|
||||
|
||||
#include "tst_qpainterpathstroker.moc"
|
Reference in New Issue
Block a user