Fix build with Qt 5.3

With Qt 5.3 passing in a long long to QFlags became ambiguous for some
reason, and I saw no good reason why it was using long long in the
first place, so I switched it to using ints.