'Display the export dialog and get the path to save the exported hosts
file.
:return: Path to export a hosts file.
:rtype: str'

def export_hosts(self):

    filename = 'hosts'
    if (self.platform == 'OS    X'):
        filename = ('/Users/' + filename)
    filepath = QtGui.QFileDialog.getSaveFileName(self, _translate('Util', 'Export    hosts', None), QtCore.QString(filename), _translate('Util', 'hosts    File', None))
    return filepath
