Add Lorem Ipsum tool (#1028)

* Add a Lorem Ipsum dialog
* Add the Lorem Ipsum text and insert action
* Add test coverage
This commit is contained in:
Veronica Berglyd Olsen authored and GitHub committed 2022-04-02 17:41:35 +02:00
1 parent 99cc3635f7
commit a04b44d890
6 files changed
+346 -1

No files matched your search

+5
View File
@@ -669,6 +669,11 @@ class GuiMainMenu(QMenuBar):
self.aInsVSpaceM.triggered.connect(lambda: self._docInsert(nwDocInsert.VSPACE_M))
self.mInsBreaks.addAction(self.aInsVSpaceM)
# Insert > Placeholder Text
self.aLipsumText = QAction(self.tr("Placeholder Text"), self)
self.aLipsumText.triggered.connect(lambda: self.theParent.showLoremIpsumDialog())
self.insertMenu.addAction(self.aLipsumText)
return
def _buildFormatMenu(self):