removed some custom functions in favor of Qt implementations