Graph: Fixes for Qt 4.8.6