forked from openlp/openlp
Cleanup and import fix
This commit is contained in:
parent
43a4eaed96
commit
d9d976d64b
@ -32,7 +32,8 @@ from sqlalchemy import Column, ForeignKey, or_, Table, types
|
|||||||
from sqlalchemy.orm import class_mapper, mapper, relation
|
from sqlalchemy.orm import class_mapper, mapper, relation
|
||||||
from sqlalchemy.orm.exc import UnmappedClassError
|
from sqlalchemy.orm.exc import UnmappedClassError
|
||||||
|
|
||||||
from openlp.core.lib.db import BaseModel, init_db, Manager, translate
|
from openlp.core.lib import translate
|
||||||
|
from openlp.core.lib.db import BaseModel, init_db, Manager
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -86,10 +86,10 @@ class CustomMediaItem(MediaManagerItem):
|
|||||||
|
|
||||||
def loadCustomListView(self, list):
|
def loadCustomListView(self, list):
|
||||||
self.ListView.clear()
|
self.ListView.clear()
|
||||||
for CustomSlide in list:
|
for customSlide in list:
|
||||||
custom_name = QtGui.QListWidgetItem(CustomSlide.title)
|
custom_name = QtGui.QListWidgetItem(customSlide.title)
|
||||||
custom_name.setData(
|
custom_name.setData(
|
||||||
QtCore.Qt.UserRole, QtCore.QVariant(CustomSlide.id))
|
QtCore.Qt.UserRole, QtCore.QVariant(customSlide.id))
|
||||||
self.ListView.addItem(custom_name)
|
self.ListView.addItem(custom_name)
|
||||||
|
|
||||||
def onNewClick(self):
|
def onNewClick(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user