forked from openlp/openlp
Changed variable names
This commit is contained in:
parent
394a02c696
commit
1c53207a77
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user