Ported for Qt4

 Hope it works :) Just I couldn't do tests for it cause of conflicts between PyQt4 and PyQt5.
In this pull request also some commits I did to master before, I know they are wrong, I'll fix it later. And also another dialog class for importing button, but seems like it's still not works like it has to on Fedora.