bug fix - repaint
This commit is contained in:
parent
85061454a6
commit
5c4bfceee7
3 changed files with 14 additions and 2 deletions
|
|
@ -123,6 +123,7 @@ class MessageItem(QtGui.QWidget):
|
|||
movie = QtGui.QMovie(curr_directory() + '/images/spinner.gif')
|
||||
self.time.setMovie(movie)
|
||||
movie.start()
|
||||
self.t = time
|
||||
else:
|
||||
self.time.setText(time)
|
||||
|
||||
|
|
@ -136,6 +137,12 @@ class MessageItem(QtGui.QWidget):
|
|||
self.message.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.time.setStyleSheet("QLabel { color: #5CB3FF; }")
|
||||
|
||||
def mark_as_sent(self):
|
||||
if hasattr(self, 't'):
|
||||
self.time.setText(self.t)
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
class ContactItem(QtGui.QWidget):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue