changing all assert() to Q_ASSERT()

except for thirdparty/portmidi/