def setQueryEnabled(self, enabled=True):
        if enabled:
            if not self.resetButton:
                self.resetButton = QResetQueryButton(self)
                self.connect(self.resetButton,
                             QtCore.SIGNAL('resetQuery()'),
                             self.resetQuery)
            self.resetButton.show()
            self.resetButton.updateGeometry()
        else:
            if self.resetButton:
                self.resetButton.hide()
            self.scene().update()
Canonicalize parameters for use with AWS Authorization.
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/graphics_view.py/QInteractiveGraphicsView.setQueryEnabled--crossover with--dataset/ETHPy150Open wehriam/awspider/awspider/aws/productadvertising.py/AmazonProductAdvertising._canonicalize