update to handle Qt5
added CMN_UNUSED for unused parameter