Fix build with Qt 5.11
PR: 230884 Obtained from: upstream PR (https://github.com/keepassx/keepassx/pull/214)