mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-19 04:12:29 +12:00
Adds: drag and drop -- corrections
This commit is contained in:
parent
8e3cde0e69
commit
78d8a3aec3
|
@ -160,10 +160,13 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|||
####################################################################################################
|
||||
|
||||
def outlineAddItem(self, type="folder"):
|
||||
currentIndex = self.treeRedacOutline.currentIndex()
|
||||
print(currentIndex)
|
||||
if len(self.treeRedacOutline.selectedIndexes()) == 0:
|
||||
parent = QModelIndex()
|
||||
else:
|
||||
parent = self.treeRedacOutline.currentIndex()
|
||||
|
||||
item = outlineItem("Nouveau", type)
|
||||
self.mdlOutline.appendItem(item, currentIndex)
|
||||
self.mdlOutline.appendItem(item, parent)
|
||||
|
||||
def outlineRemoveItems(self):
|
||||
for idx in self.treeRedacOutline.selectedIndexes():
|
||||
|
|
Loading…
Reference in a new issue