clockLabel->setContentsMargins(0, 0, MARGIN, 0);
clockLabel->setFixedSize(ICON_WIDTH + MARGIN, ICON_HEIGHT);
- m_findButton = new ImageButton();
+ m_avatar = new ImageButton();
m_nameLabel = new QLabel();
- m_nameLabel->setWordWrap(true);
m_statusTextLabel = new QLabel();
m_statusTextLabel->setWordWrap(true);
infoLayout->addRow(compassLabel, m_locationLabel);
infoLayout->addRow(clockLabel, m_updatedLabel);
- verticalLayout->addWidget(m_findButton, 0, Qt::AlignHCenter);
+ verticalLayout->addWidget(m_avatar, 0, Qt::AlignHCenter);
verticalLayout->addWidget(m_nameLabel, 0, Qt::AlignHCenter);
verticalLayout->addLayout(infoLayout);
verticalLayout->addLayout(buttonLayout);
connect(updateFriendsButton,SIGNAL(clicked()),
this, SIGNAL(refreshUserData()));
- connect(m_findButton, SIGNAL(clicked()),
+ connect(m_avatar, SIGNAL(clicked()),
this, SLOT(findButtonClicked()));
setFixedWidth(BACKGROUND_WIDTH);
qDebug() << __PRETTY_FUNCTION__;
if(!image.isNull())
- m_findButton->setButtonIcon(image);
+ m_avatar->setButtonIcon(image);
}
void UserInfo::setExpanded(bool expanded)