def eventFilter(self, q, e):
        if q and q==self.floatingButton:
            if (e.type()==QtCore.QEvent.MouseButtonRelease and
                e.button()&QtCore.Qt.LeftButton):
                if self.isMaximized():
                    self.showNormal()
                else:
                    self.showMaximized()
                return False
        return QtGui.QDockWidget.eventFilter(self, q, e)
Hashes the given string with the desired type, defaults to MD5.
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/spreadsheet/spreadsheet_tab.py/StandardTabDockWidget.eventFilter--crossover with--dataset/ETHPy150Open jlisee/xpkg/python/xpkg/util.py/hash_string