m_friendListView = new FriendListView(this);
QScrollArea *friendListScroll = new QScrollArea(this);
friendListScroll->setWidget(m_friendListView);
- friendListScroll->setWidgetResizable(true);
friendListScroll->viewport()->setAutoFillBackground(false);
friendListScroll->widget()->setAutoFillBackground(false);
User *user = new User(QString("Address"), QPointF(12.22, 23.33), QString("Name Name Name Naem"),
QString("Hello world! Hello world! Hello world! Hello world! "),
QUrl(), QString("2 days ago"), false, QString("id"), QString("km"),
- 10000);
- user->setProfileImage(QPixmap("res/images/face.gif"));
+ 600);
+ user->setProfileImage(QPixmap(":/res/images/face.gif"));
friendList.append(user);
}
friendInfoReceived(friendList);
{
qDebug() << __PRETTY_FUNCTION__;
- m_friendListView->clear();
+ //m_friendListView->clear();
foreach (User *user, friendList) {
FriendListItem *item = new FriendListItem(m_friendListView);