X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=bak%2Finbox_model.py;fp=bak%2Finbox_model.py;h=0000000000000000000000000000000000000000;hb=d13fa65a92f9782c6505aa12b18e93cc0747ce64;hp=e83d6326a4d1fd23858b7c9a17825a8b3cf48ab8;hpb=39b7e1e9a1d3e90acae7d9a300b849f5f9a202d8;p=retroconv diff --git a/bak/inbox_model.py b/bak/inbox_model.py deleted file mode 100644 index e83d632..0000000 --- a/bak/inbox_model.py +++ /dev/null @@ -1,24 +0,0 @@ -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()