Changed variable names

This commit is contained in:
Stevan Pettit 2012-06-04 09:18:46 -04:00
parent 394a02c696
commit 1c53207a77
1 changed files with 5 additions and 5 deletions

View File

@ -46,21 +46,21 @@ class Settings(QtCore.QSettings):
object for accessing settings stored in that Ini file. object for accessing settings stored in that Ini file.
""" """
FilePath = u'' filePath = u''
@staticmethod @staticmethod
def setFilename(filepath): def setFilename(iniFile):
""" """
Sets the complete path to an Ini file to be used by Settings objects. Sets the complete path to an Ini file to be used by Settings objects.
Does not affect existing Settings objects. Does not affect existing Settings objects.
""" """
Settings.FilePath = filepath Settings.filePath = iniFile
def __init__(self, *args): def __init__(self, *args):
if not args and Settings.FilePath and (Settings.defaultFormat() == if not args and Settings.filePath and (Settings.defaultFormat() ==
Settings.IniFormat): Settings.IniFormat):
QtCore.QSettings.__init__(self, Settings.FilePath, QtCore.QSettings.__init__(self, Settings.filePath,
Settings.IniFormat) Settings.IniFormat)
else: else:
QtCore.QSettings.__init__(self, *args) QtCore.QSettings.__init__(self, *args)