nativewindow: Add additional test for 8pt font size

Change-Id: I5012eb6ffee8f81da61a6fe611352ee5900a5eee
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Tor Arne Vestbø 2018-12-13 16:02:50 +01:00
parent b34143f8a1
commit 1f30434356

View File

@ -208,10 +208,9 @@ public:
}
}();
layout->addWidget(new TextRenderer(12, text, color.first, color.second));
layout->addWidget(new TextRenderer(24, text, color.first, color.second));
layout->addWidget(new TextRenderer(36, text, color.first, color.second));
layout->addWidget(new TextRenderer(48, text, color.first, color.second));
for (int pointSize : {8, 12, 24, 36, 48})
layout->addWidget(new TextRenderer(pointSize, text, color.first, color.second));
static_cast<QHBoxLayout*>(m_previews->layout())->addLayout(layout);
}