added Qt assertion macro in Ribbon class