initial flowlayout class from qt-project.org