forked from openlp/openlp
removed the 'default' button
This commit is contained in:
parent
7ec12f15ea
commit
af961afa78
@ -69,9 +69,6 @@ class Ui_DisplayTagDialog(object):
|
|||||||
spacerItem = QtGui.QSpacerItem(40, 20,
|
spacerItem = QtGui.QSpacerItem(40, 20,
|
||||||
QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
||||||
self.horizontalLayout.addItem(spacerItem)
|
self.horizontalLayout.addItem(spacerItem)
|
||||||
self.defaultPushButton = QtGui.QPushButton(self.widget)
|
|
||||||
self.defaultPushButton.setObjectName(u'defaultPushButton')
|
|
||||||
self.horizontalLayout.addWidget(self.defaultPushButton)
|
|
||||||
self.deletePushButton = QtGui.QPushButton(self.widget)
|
self.deletePushButton = QtGui.QPushButton(self.widget)
|
||||||
self.deletePushButton.setObjectName(u'deletePushButton')
|
self.deletePushButton.setObjectName(u'deletePushButton')
|
||||||
self.horizontalLayout.addWidget(self.deletePushButton)
|
self.horizontalLayout.addWidget(self.deletePushButton)
|
||||||
@ -141,8 +138,6 @@ class Ui_DisplayTagDialog(object):
|
|||||||
self.endTagLabel.setText(
|
self.endTagLabel.setText(
|
||||||
translate('OpenLP.DisplayTagDialog', 'End tag'))
|
translate('OpenLP.DisplayTagDialog', 'End tag'))
|
||||||
self.deletePushButton.setText(UiStrings().Delete)
|
self.deletePushButton.setText(UiStrings().Delete)
|
||||||
self.defaultPushButton.setText(
|
|
||||||
translate('OpenLP.DisplayTagDialog', 'Default'))
|
|
||||||
self.newPushButton.setText(UiStrings().New)
|
self.newPushButton.setText(UiStrings().New)
|
||||||
self.tagTableWidget.horizontalHeaderItem(0).setText(
|
self.tagTableWidget.horizontalHeaderItem(0).setText(
|
||||||
translate('OpenLP.DisplayTagDialog', 'Description'))
|
translate('OpenLP.DisplayTagDialog', 'Description'))
|
||||||
|
@ -51,8 +51,6 @@ class DisplayTagForm(QtGui.QDialog, Ui_DisplayTagDialog):
|
|||||||
self._loadDisplayTags()
|
self._loadDisplayTags()
|
||||||
QtCore.QObject.connect(self.tagTableWidget,
|
QtCore.QObject.connect(self.tagTableWidget,
|
||||||
QtCore.SIGNAL(u'clicked(QModelIndex)'), self.onRowSelected)
|
QtCore.SIGNAL(u'clicked(QModelIndex)'), self.onRowSelected)
|
||||||
QtCore.QObject.connect(self.defaultPushButton,
|
|
||||||
QtCore.SIGNAL(u'pressed()'), self.onDefaultPushed)
|
|
||||||
QtCore.QObject.connect(self.newPushButton,
|
QtCore.QObject.connect(self.newPushButton,
|
||||||
QtCore.SIGNAL(u'pressed()'), self.onNewPushed)
|
QtCore.SIGNAL(u'pressed()'), self.onNewPushed)
|
||||||
QtCore.QObject.connect(self.savePushButton,
|
QtCore.QObject.connect(self.savePushButton,
|
||||||
@ -141,13 +139,6 @@ class DisplayTagForm(QtGui.QDialog, Ui_DisplayTagDialog):
|
|||||||
self.tagTableWidget.selectRow(self.tagTableWidget.rowCount() - 1)
|
self.tagTableWidget.selectRow(self.tagTableWidget.rowCount() - 1)
|
||||||
self.onRowSelected()
|
self.onRowSelected()
|
||||||
|
|
||||||
def onDefaultPushed(self):
|
|
||||||
"""
|
|
||||||
Remove all Custom Tags and reset to base set only.
|
|
||||||
"""
|
|
||||||
DisplayTags.reset_html_tags()
|
|
||||||
self._resetTable()
|
|
||||||
|
|
||||||
def onDeletePushed(self):
|
def onDeletePushed(self):
|
||||||
"""
|
"""
|
||||||
Delete selected custom tag.
|
Delete selected custom tag.
|
||||||
|
Loading…
Reference in New Issue
Block a user