C++11 style fixes
Use Q_D instead of d_func()
Iterator over constant pointers