QTest::addRow("panel orientation normal, no rotation")<<OutputTransform::Kind::Normal<<QOrientationReading::Orientation::TopUp<<OutputTransform::Kind::Normal;
QTest::addRow("panel orientation left up, no rotation")<<OutputTransform::Kind::Rotate90<<QOrientationReading::Orientation::TopUp<<OutputTransform::Kind::Rotate90;
QTest::addRow("panel orientation left up, rotated 90° right")<<OutputTransform::Kind::Rotate90<<QOrientationReading::Orientation::LeftUp<<OutputTransform::Kind::Rotate180;
QTest::addRow("panel orientation left up, rotated 180°")<<OutputTransform::Kind::Rotate90<<QOrientationReading::Orientation::TopDown<<OutputTransform::Kind::Rotate270;
QTest::addRow("panel orientation left up, rotated 90° left")<<OutputTransform::Kind::Rotate90<<QOrientationReading::Orientation::RightUp<<OutputTransform::Kind::Normal;
QTest::addRow("panel orientation upside down, no rotation")<<OutputTransform::Kind::Rotate180<<QOrientationReading::Orientation::TopUp<<OutputTransform::Kind::Rotate180;
QTest::addRow("panel orientation right up, no rotation")<<OutputTransform::Kind::Rotate270<<QOrientationReading::Orientation::TopUp<<OutputTransform::Kind::Rotate270;
QTest::addRow("panel orientation right up, rotated 90° right")<<OutputTransform::Kind::Rotate270<<QOrientationReading::Orientation::LeftUp<<OutputTransform::Kind::Normal;
QTest::addRow("panel orientation right up, rotated 180°")<<OutputTransform::Kind::Rotate270<<QOrientationReading::Orientation::TopDown<<OutputTransform::Kind::Rotate90;
QTest::addRow("panel orientation right up, rotated 90° left")<<OutputTransform::Kind::Rotate270<<QOrientationReading::Orientation::RightUp<<OutputTransform::Kind::Rotate180;
}
voidOutputChangesTest::testAutorotate()
{
// delete the previous config to avoid clashes between test runs