Fixed detection of snore for Qt4/Qt5