The attached patch fixes compile on Qt/KDE platforms.
Created attachment 11361 [details] fixes compile
Landed by George r17573.