Some more cleanups and an empty test.

This commit is contained in:
Raoul Snyman 2013-03-13 09:08:41 +02:00
parent 9383f2a4af
commit 470e48c65a
2 changed files with 11 additions and 8 deletions

View File

@ -36,35 +36,35 @@ from openlp.plugins.songs.lib import VerseType
class Ui_EditVerseDialog(object):
def setupUi(self, edit_verse_dialog):
edit_verse_dialog.setObjectName(u'editVerseDialog')
edit_verse_dialog.setObjectName(u'edit_verse_dialog')
edit_verse_dialog.resize(400, 400)
edit_verse_dialog.setModal(True)
self.dialog_layout = QtGui.QVBoxLayout(edit_verse_dialog)
self.dialog_layout.setObjectName(u'dialog_layout')
self.verse_text_edit = SpellTextEdit(edit_verse_dialog)
self.verse_text_edit.setObjectName(u'verseTextEdit')
self.verse_text_edit.setObjectName(u'verse_text_edit')
self.dialog_layout.addWidget(self.verse_text_edit)
self.verse_type_layout = QtGui.QHBoxLayout()
self.verse_type_layout.setObjectName(u'verseTypeLayout')
self.verse_type_layout.setObjectName(u'verse_type_layout')
self.split_button = QtGui.QPushButton(edit_verse_dialog)
self.split_button.setIcon(build_icon(u':/general/general_add.png'))
self.split_button.setObjectName(u'splitButton')
self.split_button.setObjectName(u'split_button')
self.verse_type_layout.addWidget(self.split_button)
self.verse_type_label = QtGui.QLabel(edit_verse_dialog)
self.verse_type_label.setObjectName(u'verseTypeLabel')
self.verse_type_label.setObjectName(u'verse_type_label')
self.verse_type_layout.addWidget(self.verse_type_label)
self.verse_type_combo_box = QtGui.QComboBox(edit_verse_dialog)
self.verse_type_combo_box.addItems([u'', u'', u'', u'', u'', u'', u''])
self.verse_type_combo_box.setObjectName(u'verseTypeComboBox')
self.verse_type_combo_box.setObjectName(u'verse_type_combo_box')
self.verse_type_label.setBuddy(self.verse_type_combo_box)
self.verse_type_layout.addWidget(self.verse_type_combo_box)
self.verse_number_box = QtGui.QSpinBox(edit_verse_dialog)
self.verse_number_box.setMinimum(1)
self.verse_number_box.setObjectName(u'verseNumberBox')
self.verse_number_box.setObjectName(u'verse_number_box')
self.verse_type_layout.addWidget(self.verse_number_box)
self.insert_button = QtGui.QPushButton(edit_verse_dialog)
self.insert_button.setIcon(build_icon(u':/general/general_add.png'))
self.insert_button.setObjectName(u'insertButton')
self.insert_button.setObjectName(u'insert_button')
self.verse_type_layout.addWidget(self.insert_button)
self.verse_type_layout.addStretch()
self.dialog_layout.addLayout(self.verse_type_layout)

View File

@ -38,3 +38,6 @@ class TestEditSongForm(TestCase):
self.assertFalse(self.form.verse_delete_button.isEnabled(), u'The verse delete button should not be enabled')
self.assertFalse(self.form.author_remove_button.isEnabled(), u'The author remove button should not be enabled')
self.assertFalse(self.form.topic_remove_button.isEnabled(), u'The topic remove button should not be enabled')
def is_verse_edit_form_executed_test(self):
pass