add appropriate tooltips

This commit is contained in:
suhas2go
2017-01-12 22:57:20 +05:30
parent b12230ce8e
commit ea1bec33d1

View File

@@ -123,9 +123,11 @@ class AdvancedScriptItem(QtGui.QWidget):
up_button = QtGui.QToolButton()
up_button.setArrowType(QtCore.Qt.UpArrow)
up_button.setMaximumSize(QtCore.QSize(16, 16))
up_button.setToolTip(_("Move script up"))
down_button = QtGui.QToolButton()
down_button.setArrowType(QtCore.Qt.DownArrow)
down_button.setMaximumSize(QtCore.QSize(16, 16))
down_button.setToolTip(_("Move script down"))
layout.addWidget(up_button, 0, self._BUTTON_UP)
layout.addWidget(down_button, 0, self._BUTTON_DOWN)
@@ -133,6 +135,7 @@ class AdvancedScriptItem(QtGui.QWidget):
other_button.setText("...")
other_button.setAutoRaise(True)
other_button.setMaximumSize(QtCore.QSize(16, 16))
other_button.setToolTip(_("Other options"))
menu = QtGui.QMenu()
menu.addAction(_("Rename script"))
menu.addAction(_("Remove script"))