+++ /dev/null
-from PyQt4 import *
-from PyQt4.QtCore import *
-from PyQt4.QtGui import *
-import sys
-
-
-class InboxModel(QAbstractListModel):
- def __init__(self, mlist):
- QAbstractListModel.__init__(self)
-
-
- self._items = mlist
-
-
- def rowCount(self, parent = QModelIndex()):
- return len(self._items)
-
-
-
- def data(self, index, role = Qt.DisplayRole):
- if role == Qt.DisplayRole:
- return QVariant(self._items[index.row()].getSenderName())
- else:
- return QVariant()