Porting source code of the book C++ GUI Programming with Qt 4 from Qt4 to Qt5