Make the auto-replace list in project settings sorted
This commit is contained in:
@@ -336,6 +336,9 @@ class GuiProjectEditReplace(QWidget):
|
|||||||
newItem = QTreeWidgetItem(["<%s>" % aKey, aVal])
|
newItem = QTreeWidgetItem(["<%s>" % aKey, aVal])
|
||||||
self.listBox.addTopLevelItem(newItem)
|
self.listBox.addTopLevelItem(newItem)
|
||||||
|
|
||||||
|
self.listBox.sortByColumn(0, Qt.AscendingOrder)
|
||||||
|
self.listBox.setSortingEnabled(True)
|
||||||
|
|
||||||
self.editKey = QLineEdit()
|
self.editKey = QLineEdit()
|
||||||
self.editValue = QLineEdit()
|
self.editValue = QLineEdit()
|
||||||
self.saveButton = QPushButton(QIcon.fromTheme("document-save"),"")
|
self.saveButton = QPushButton(QIcon.fromTheme("document-save"),"")
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version='1.0' encoding='utf-8'?>
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
<novelWriterXML appVersion="0.2.0" fileVersion="1.0" timeStamp="2019-06-28 12:43:41">
|
<novelWriterXML appVersion="0.2.0" fileVersion="1.0" timeStamp="2019-08-11 19:41:35">
|
||||||
<project>
|
<project>
|
||||||
<name>Sample Project</name>
|
<name>Sample Project</name>
|
||||||
<title>Sample Project</title>
|
<title>Sample Project</title>
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
<lastWordCount>581</lastWordCount>
|
<lastWordCount>581</lastWordCount>
|
||||||
<autoReplace>
|
<autoReplace>
|
||||||
<A>B</A>
|
<A>B</A>
|
||||||
|
<B>E</B>
|
||||||
<C>D</C>
|
<C>D</C>
|
||||||
</autoReplace>
|
</autoReplace>
|
||||||
<status>
|
<status>
|
||||||
|
|||||||
Reference in New Issue
Block a user