<s> from __future__ import print_function <EOL> from __future__ import unicode_literals <EOL> from __future__ import absolute_import <EOL> from PySide import QtCore , QtGui <EOL> class NoteListWidgetItem ( QtGui . QListWidgetItem ) : <EOL> def __init__ ( self , notemodel ) : <EOL> super ( NoteListWidgetItem , self ) . __init__ ( ) <EOL> self . notemodel = notemodel <EOL> self . _found = True <EOL> def data ( self , role = QtCore . Qt . DisplayRole ) : <EOL> if role == QtCore . Qt . DisplayRole : <EOL> return self . notemodel . title <EOL> elif role == QtCore . Qt . DecorationRole : <EOL> if self . notemodel . pinned : <EOL> return QtGui . QIcon ( "<STR_LIT>" ) <EOL> else : <EOL> return None <EOL> def __lt__ ( self , other ) : <EOL> """<STR_LIT>""" <EOL> if other . notemodel . pinned and self . notemodel . pinned : <EOL> return self . notemodel . timestamp < other . notemodel . timestamp <EOL> elif not other . notemodel . pinned and not self . notemodel . pinned : <EOL> return self . notemodel . timestamp < other . notemodel . timestamp <EOL> elif other . notemodel . pinned and not self . notemodel . pinned : <EOL> return True <EOL> elif not other . notemodel . pinned and self . notemodel . pinned : <EOL> return False </s>
