tests: Decouple tst_multisplitter from QWidget more

It now asks the platform to create a test view instead of
using one that inherits from QWidget.
This commit is contained in:
Sergio Martins
2022-05-08 19:28:54 +01:00
parent a3bf159281
commit 97f26743e5
2 changed files with 32 additions and 94 deletions

View File

@@ -41,7 +41,7 @@ public:
QSize maxSizeHint() const override
{
return m_opts.maxSize;
return m_opts.maxSize.boundedTo(Views::View_qtwidgets<QWidget>::maximumSize());
}
private: