compatible with Qt4

Signed-off-by: Takashiro <takashiro@qq.com>