Remove borderless window feature
Clean up debug output
Cleanup in Preferences

Replace define with constant string.
Fix compilation

Missing header for QCloseEvent.
Remove bookmarks related stuff from Preferences
Remove unused variables from MainWindow
Simplify access to Preferences instance in MainWindow
Improve coding style in MainWindow
Refactor code for menus of tab bar and scroll bar positions