Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable qscilib: use placeholder text to replace regexp: label

Changeset df15719a8a91

Parent d4b81116e4f9

by Steve Borho

Changes to one file · Browse files at df15719a8a91 Showing diff from parent d4b81116e4f9 Diff from another changeset...

 
307
308
309
310
311
312
313
 
 
 
 
 
 
 
314
315
316
317
318
 
307
308
309
 
 
 
310
311
312
313
314
315
316
317
318
 
319
320
321
@@ -307,12 +307,15 @@
  self._close_button.clicked.connect(self.hide)   self.addWidget(self._close_button)   - self._lbl = QLabel(_('Regexp:'), - toolTip=_('Regular expression search pattern')) - self.addWidget(self._lbl)   self._le = QLineEdit() + if hasattr(self._le, 'setPlaceholderText'): # Qt >= 4.7 + self._le.setPlaceholderText(_('### regular expression ###')) + else: + self._lbl = QLabel(_('Regexp:'), + toolTip=_('Regular expression search pattern')) + self.addWidget(self._lbl) + self._lbl.setBuddy(self._le)   self._le.returnPressed.connect(self._emitSearchRequested) - self._lbl.setBuddy(self._le)   self.addWidget(self._le)   self._chk = QCheckBox(_('Ignore case'))   self.addWidget(self._chk)