mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
removed unused ProjectModel
This commit is contained in:
parent
d0e0bcb67c
commit
4fbf5dd8db
1 changed files with 0 additions and 19 deletions
|
|
@ -17,25 +17,6 @@ from . import lib
|
|||
log = PypeLogger().get_logger("SyncServer")
|
||||
|
||||
|
||||
class ProjectModel(QtCore.QAbstractListModel):
|
||||
def __init__(self, *args, projects=None, **kwargs):
|
||||
super(ProjectModel, self).__init__(*args, **kwargs)
|
||||
self.projects = projects or []
|
||||
|
||||
def data(self, index, role):
|
||||
if role == Qt.DisplayRole:
|
||||
# See below for the data structure.
|
||||
status, text = self.projects[index.row()]
|
||||
# Return the todo text only.
|
||||
return text
|
||||
|
||||
def rowCount(self, _index):
|
||||
return len(self.todos)
|
||||
|
||||
def columnCount(self, _index):
|
||||
return len(self._header)
|
||||
|
||||
|
||||
class _SyncRepresentationModel(QtCore.QAbstractTableModel):
|
||||
|
||||
COLUMN_LABELS = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue