Now uses debugf() macro that can be controlled in one place, disabled by default.

Also changed qDebugs to qWarnings.