Merge pull request #3322 from MrLeeh/patch-1

Fixed error with QSizePolicy