tests fix 2
This commit is contained in:
parent
b3ed257826
commit
3f1bddb3cd
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
from mainscreen import *
|
||||
import mainscreen
|
||||
from settings import Settings
|
||||
from PySide import QtCore, QtGui
|
||||
import os
|
||||
|
@ -167,7 +167,7 @@ class Profile(Contact):
|
|||
def newMessage(self, id, message_type, message):
|
||||
if id == self._active_friend: # add message to list
|
||||
user_name = Profile.getInstance().getActiveName()
|
||||
item = MessageItem(message, curr_time(), user_name)
|
||||
item = mainscreen.MessageItem(message, curr_time(), user_name)
|
||||
elem = QtGui.QListWidgetItem(self._messages)
|
||||
print item.sizeHint()
|
||||
elem.setSizeHint(QtCore.QSize(500, 100))
|
||||
|
|
Loading…
Reference in a new issue