You've already forked nodeeditor
mirror of
https://github.com/AxioDL/nodeeditor.git
synced 2026-03-30 11:48:31 -07:00
32 lines
425 B
C++
32 lines
425 B
C++
#pragma once
|
|
|
|
#include <QtCore/QPoint>
|
|
#include <QtCore/QPointF>
|
|
|
|
#include <catch2/catch.hpp>
|
|
|
|
#include <QtTest>
|
|
|
|
namespace Catch
|
|
{
|
|
template <>
|
|
struct StringMaker<QPointF>
|
|
{
|
|
static std::string
|
|
convert(QPointF const& p)
|
|
{
|
|
return std::string(QTest::toString(p));
|
|
}
|
|
};
|
|
|
|
template <>
|
|
struct StringMaker<QPoint>
|
|
{
|
|
static std::string
|
|
convert(QPoint const& p)
|
|
{
|
|
return std::string(QTest::toString(p));
|
|
}
|
|
};
|
|
}
|