Fix alertdispatcher.cpp compilability on Qt5.
Merge pull request #1782 from sorokin/alert-disp-qt5

Fix alertdispatcher.cpp compilability on Qt5.