forked from openlp/openlp
hard coded misleading arguments
This commit is contained in:
parent
dc2bafaab9
commit
08a3a7aba6
|
@ -80,7 +80,7 @@ class ImageMediaItem(MediaManagerItem):
|
||||||
u'thumbnails')
|
u'thumbnails')
|
||||||
check_directory_exists(self.servicePath)
|
check_directory_exists(self.servicePath)
|
||||||
self.loadList(SettingsManager.load_list(
|
self.loadList(SettingsManager.load_list(
|
||||||
self.settingsSection, self.settingsSection), True)
|
self.settingsSection, u'images'), True)
|
||||||
|
|
||||||
def addListViewToToolBar(self):
|
def addListViewToToolBar(self):
|
||||||
MediaManagerItem.addListViewToToolBar(self)
|
MediaManagerItem.addListViewToToolBar(self)
|
||||||
|
@ -108,7 +108,7 @@ class ImageMediaItem(MediaManagerItem):
|
||||||
unicode(text.text())))
|
unicode(text.text())))
|
||||||
self.listView.takeItem(row)
|
self.listView.takeItem(row)
|
||||||
SettingsManager.set_list(self.settingsSection,
|
SettingsManager.set_list(self.settingsSection,
|
||||||
self.settingsSection, self.getFileList())
|
u'images', self.getFileList())
|
||||||
|
|
||||||
def loadList(self, images, initialLoad=False):
|
def loadList(self, images, initialLoad=False):
|
||||||
if not initialLoad:
|
if not initialLoad:
|
||||||
|
@ -217,8 +217,7 @@ class ImageMediaItem(MediaManagerItem):
|
||||||
'the image file "%s" no longer exists.')) % filename)
|
'the image file "%s" no longer exists.')) % filename)
|
||||||
|
|
||||||
def search(self, string):
|
def search(self, string):
|
||||||
files = SettingsManager.load_list(self.settingsSection,
|
files = SettingsManager.load_list(self.settingsSection, u'images')
|
||||||
self.settingsSection)
|
|
||||||
results = []
|
results = []
|
||||||
string = string.lower()
|
string = string.lower()
|
||||||
for file in files:
|
for file in files:
|
||||||
|
|
|
@ -182,8 +182,7 @@ class MediaMediaItem(MediaManagerItem):
|
||||||
def initialise(self):
|
def initialise(self):
|
||||||
self.listView.clear()
|
self.listView.clear()
|
||||||
self.listView.setIconSize(QtCore.QSize(88, 50))
|
self.listView.setIconSize(QtCore.QSize(88, 50))
|
||||||
self.loadList(SettingsManager.load_list(self.settingsSection,
|
self.loadList(SettingsManager.load_list(self.settingsSection, u'media'))
|
||||||
self.settingsSection))
|
|
||||||
|
|
||||||
def onDeleteClick(self):
|
def onDeleteClick(self):
|
||||||
"""
|
"""
|
||||||
|
@ -196,7 +195,7 @@ class MediaMediaItem(MediaManagerItem):
|
||||||
for row in row_list:
|
for row in row_list:
|
||||||
self.listView.takeItem(row)
|
self.listView.takeItem(row)
|
||||||
SettingsManager.set_list(self.settingsSection,
|
SettingsManager.set_list(self.settingsSection,
|
||||||
self.settingsSection, self.getFileList())
|
u'media', self.getFileList())
|
||||||
|
|
||||||
def loadList(self, files):
|
def loadList(self, files):
|
||||||
# Sort the themes by its filename considering language specific
|
# Sort the themes by its filename considering language specific
|
||||||
|
@ -217,8 +216,7 @@ class MediaMediaItem(MediaManagerItem):
|
||||||
self.mediaObject = Phonon.MediaObject(self)
|
self.mediaObject = Phonon.MediaObject(self)
|
||||||
|
|
||||||
def search(self, string):
|
def search(self, string):
|
||||||
files = SettingsManager.load_list(self.settingsSection,
|
files = SettingsManager.load_list(self.settingsSection, u'media')
|
||||||
self.settingsSection)
|
|
||||||
results = []
|
results = []
|
||||||
string = string.lower()
|
string = string.lower()
|
||||||
for file in files:
|
for file in files:
|
||||||
|
|
|
@ -228,7 +228,7 @@ class PresentationMediaItem(MediaManagerItem):
|
||||||
for row in row_list:
|
for row in row_list:
|
||||||
self.listView.takeItem(row)
|
self.listView.takeItem(row)
|
||||||
SettingsManager.set_list(self.settingsSection,
|
SettingsManager.set_list(self.settingsSection,
|
||||||
self.settingsSection, self.getFileList())
|
u'presentations', self.getFileList())
|
||||||
|
|
||||||
def generateSlideData(self, service_item, item=None, xmlVersion=False):
|
def generateSlideData(self, service_item, item=None, xmlVersion=False):
|
||||||
"""
|
"""
|
||||||
|
@ -313,7 +313,7 @@ class PresentationMediaItem(MediaManagerItem):
|
||||||
|
|
||||||
def search(self, string):
|
def search(self, string):
|
||||||
files = SettingsManager.load_list(
|
files = SettingsManager.load_list(
|
||||||
self.settingsSection, self.settingsSection)
|
self.settingsSection, u'presentations')
|
||||||
results = []
|
results = []
|
||||||
string = string.lower()
|
string = string.lower()
|
||||||
for file in files:
|
for file in files:
|
||||||
|
|
Loading…
Reference in New Issue