refactor QScrollBar.as