QApplication::argc() is deprecated

I simply changed from using the static functions to using the arguments.