This commit is contained in:
Kovid Goyal 2017-05-14 08:50:47 +05:30
parent da765b2327
commit a53e8447e7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -971,14 +971,16 @@ class LayoutButton(QToolButton):
def set_state_to_show(self, *args):
self.setChecked(False)
self.setText(_('Show %(label)s [%(shortcut)s]')%dict(label=self.label, shortcut=self.shortcut))
self.setText(_('Show %(label)s [%(shortcut)s]')%dict(label=self.label, shortcut=self.shortcut) + '\n\n' +
_('Right click to configure'))
self.setToolTip(self.text())
self.setStatusTip(self.text())
def set_state_to_hide(self, *args):
self.setChecked(True)
self.setText(_('Hide %(label)s [%(shortcut)s]')%dict(
label=self.label, shortcut=self.shortcut))
label=self.label, shortcut=self.shortcut) + '\n\n' +
_('Right click to configure'))
self.setToolTip(self.text())
self.setStatusTip(self.text())