~john+ubuntu-g/openlp/singingthefaith

« back to all changes in this revision

Viewing changes to openlp/core/ui/serviceitemeditform.py

  • Committer: Jonathan Springer
  • Date: 2015-11-07 00:49:40 UTC
  • mto: This revision was merged to the branch mainline in revision 2576.
  • Revision ID: springermac@gmail.com-20151107004940-m208ohzwoc74yq51
Migrate to PyQt5

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
"""
23
23
The service item edit dialog
24
24
"""
25
 
from PyQt4 import QtGui
 
25
from PyQt5 import QtWidgets
 
26
 
26
27
from openlp.core.common import Registry, RegistryProperties
27
28
 
28
29
from .serviceitemeditdialog import Ui_ServiceItemEditDialog
29
30
 
30
31
 
31
 
class ServiceItemEditForm(QtGui.QDialog, Ui_ServiceItemEditDialog, RegistryProperties):
 
32
class ServiceItemEditForm(QtWidgets.QDialog, Ui_ServiceItemEditDialog, RegistryProperties):
32
33
    """
33
34
    This is the form that is used to edit the verses of the song.
34
35
    """
71
72
        """
72
73
        self.list_widget.clear()
73
74
        for frame in self.item_list:
74
 
            item_name = QtGui.QListWidgetItem(frame['title'])
 
75
            item_name = QtWidgets.QListWidgetItem(frame['title'])
75
76
            self.list_widget.addItem(item_name)
76
77
 
77
78
    def on_delete_button_clicked(self):