Minor changes to userinfo. Remove word wrap from name label and rename button
[situare] / src / ui / userinfo.cpp
index 244041e..50dd2cb 100644 (file)
@@ -77,10 +77,9 @@ UserInfo::UserInfo(QWidget *parent)
     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);
@@ -103,7 +102,7 @@ UserInfo::UserInfo(QWidget *parent)
     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);
@@ -114,7 +113,7 @@ UserInfo::UserInfo(QWidget *parent)
     connect(updateFriendsButton,SIGNAL(clicked()),
             this, SIGNAL(refreshUserData()));
 
-    connect(m_findButton, SIGNAL(clicked()),
+    connect(m_avatar, SIGNAL(clicked()),
             this, SLOT(findButtonClicked()));
 
     setFixedWidth(BACKGROUND_WIDTH);
@@ -296,7 +295,7 @@ void UserInfo::setProfileImage(const QPixmap &image)
     qDebug() << __PRETTY_FUNCTION__;
 
     if(!image.isNull())
-        m_findButton->setButtonIcon(image);
+        m_avatar->setButtonIcon(image);
 }
 
 void UserInfo::setExpanded(bool expanded)