Added some more sample text to test some features.

This commit is contained in:
Veronica K. B. Olsen
2019-04-24 23:23:36 +02:00
parent 2f0f39b53e
commit c71ff96bf5
7 changed files with 50 additions and 19 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ class GuiDocDetails(QFrame):
for nRow in range(4):
lblOne = QLabel(colOne[nRow])
lblOne.setFont(self.fntOne)
self.mainBox.addWidget(lblOne,nRow+1,0)
self.mainBox.addWidget(lblOne,nRow,0)
self.mainBox.setColumnStretch(0,0)
self.mainBox.setColumnStretch(1,1)
@@ -79,7 +79,7 @@ class GuiDocDetails(QFrame):
for nRow in range(4):
lblTwo = QLabel(colTwo[nRow])
lblTwo.setFont(self.fntTwo)
self.mainBox.addWidget(lblTwo,nRow+1,1)
self.mainBox.addWidget(lblTwo,nRow,1)
return
+5 -1
View File
@@ -21,7 +21,7 @@ from time import time
from PyQt5.QtGui import QIcon, QPixmap, QColor
from nw.enum import nwItemType, nwItemClass, nwItemAction
from nw.enum import nwItemType, nwItemClass, nwItemLayout, nwItemAction
from nw.project.item import NWItem
logger = logging.getLogger(__name__)
@@ -79,6 +79,10 @@ class NWProject():
newItem = NWItem()
newItem.setName(fileName)
newItem.setType(nwItemType.FILE)
if fileClass == nwItemClass.NOVEL:
newItem.setLayout(nwItemLayout.SCENE)
else:
newItem.setLayout(nwItemLayout.NOTE)
newItem.setClass(fileClass)
self._appendItem(None,pHandle,newItem)
return newItem.itemHandle