Fix warning when compiling with Qt >= 5.10

Authored by alexeymin on May 17 2019, 11:05 PM.