mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-22 16:20:19 +12:00
28 lines
645 B
Python
28 lines
645 B
Python
|
#!/usr/bin/env python
|
||
|
#--!-- coding: utf8 --!--
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
from qt import *
|
||
|
from enums import *
|
||
|
from functions import *
|
||
|
from ui.views.dndView import *
|
||
|
|
||
|
class treeView(QTreeView, dndView):
|
||
|
|
||
|
def __init__(self, parent=None):
|
||
|
QTreeView.__init__(self, parent)
|
||
|
dndView.__init__(self, parent)
|
||
|
|
||
|
|
||
|
def setModel(self, model):
|
||
|
QTreeView.setModel(self, model)
|
||
|
|
||
|
# Hiding columns
|
||
|
for c in range(1, self.model().columnCount()):
|
||
|
self.hideColumn(c)
|
||
|
|
||
|
def dragMoveEvent(self, event):
|
||
|
dndView.dragMoveEvent(self, event)
|
||
|
QTreeView.dragMoveEvent(self, event)
|