'Allow press operation to set the new position for current dialog.
:param e: Current mouse event.
:type e: :class:`PyQt4.QtGui.QMouseEvent`'

def mousePressEvent(self, e):

    if (e.button() == QtCore.Qt.LeftButton):
        self.dragPos = (e.globalPos() - self.frameGeometry().topLeft())
        e.accept()
