Changed assert to qAssert