[ToolTipDialog] Use KWindowSystem::isPlatformX11() which is cached

Authored by broulik on Jan 8 2017, 5:10 PM.

Description

[ToolTipDialog] Use KWindowSystem::isPlatformX11() which is cached

I think it's wrong to set the flags for *every* event() but at least avoid the
string comparison Qt does internally in QX11Info::isPlatformX11()
Also, removes the need for an ifdef.

Differential Revision: https://phabricator.kde.org/D4019