mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
delete rename tags from find&replace
This commit is contained in:
parent
11ff28310b
commit
74b71ea8c6
2 changed files with 0 additions and 16 deletions
|
@ -826,9 +826,6 @@ where id in %s""" % ids2str(sf))
|
|||
frm.setupUi(d)
|
||||
self.connect(frm.buttonBox, SIGNAL("helpRequested()"),
|
||||
self.onFindReplaceHelp)
|
||||
frm.type.insertItems(0, [
|
||||
_("Fields"),
|
||||
_("Tags")])
|
||||
if not d.exec_():
|
||||
return
|
||||
n = _("Find and Replace")
|
||||
|
@ -843,7 +840,6 @@ where id in %s""" % ids2str(sf))
|
|||
changed = self.deck.findReplace(self.selectedFacts(),
|
||||
unicode(frm.find.text()),
|
||||
unicode(frm.replace.text()),
|
||||
frm.type.currentIndex(),
|
||||
frm.re.isChecked())
|
||||
except sre_constants.error:
|
||||
ui.utils.showInfo(_("Invalid regular expression."),
|
||||
|
@ -860,7 +856,6 @@ where id in %s""" % ids2str(sf))
|
|||
'b': len(sf),
|
||||
}, parent=self)
|
||||
|
||||
|
||||
def onFindReplaceHelp(self):
|
||||
QDesktopServices.openUrl(QUrl(ankiqt.appWiki +
|
||||
"Editor#FindReplace"))
|
||||
|
|
|
@ -36,16 +36,6 @@
|
|||
<widget class="QLineEdit" name="replace" />
|
||||
</item>
|
||||
<item row="2" column="1" >
|
||||
<widget class="QComboBox" name="type" />
|
||||
</item>
|
||||
<item row="2" column="0" >
|
||||
<widget class="QLabel" name="label_3" >
|
||||
<property name="text" >
|
||||
<string>Search</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1" >
|
||||
<widget class="QCheckBox" name="re" >
|
||||
<property name="text" >
|
||||
<string>Treat input as regular expression</string>
|
||||
|
@ -82,7 +72,6 @@
|
|||
<tabstops>
|
||||
<tabstop>find</tabstop>
|
||||
<tabstop>replace</tabstop>
|
||||
<tabstop>type</tabstop>
|
||||
<tabstop>re</tabstop>
|
||||
<tabstop>buttonBox</tabstop>
|
||||
</tabstops>
|
||||
|
|
Loading…
Reference in a new issue