From f9247078bc4fc4ddf8db4d6b335cbdae09de816e Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Mon, 7 May 2012 09:35:52 +0100 Subject: [PATCH] more Delete clean ups --- openlp/core/ui/servicemanager.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index 96734bc47..01e624831 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -1344,31 +1344,6 @@ class ServiceManager(QtGui.QWidget): break return serviceItem, serviceItemChild - def findServiceItems(self): - """ - Finds all selected ServiceItems in the list and returns the position of - the serviceitem and its selected child item. For example, if the third - child item (in the Slidecontroller known as slide) in the second service - item is selected this will return:: - - (1, 2) - """ - items = self.serviceManagerList.selectedItems() - serviceItem = 0 - serviceItemChild = -1 - for item in items: - parentitem = item.parent() - if parentitem is None: - serviceItem = item.data(0, QtCore.Qt.UserRole).toInt()[0] - else: - serviceItem = parentitem.data(0, QtCore.Qt.UserRole).toInt()[0] - serviceItemChild = item.data(0, QtCore.Qt.UserRole).toInt()[0] - # Adjust for zero based arrays. - serviceItem -= 1 - # Only process the first item on the list for this method. - break - return serviceItem, serviceItemChild - def dragEnterEvent(self, event): """ Accept Drag events