Minor changes to userinfo. Remove word wrap from name label and rename button
authorKatri Kaikkonen <katri.kaikkonen@ixonos.com>
Fri, 27 Aug 2010 13:00:51 +0000 (16:00 +0300)
committerKatri Kaikkonen <katri.kaikkonen@ixonos.com>
Fri, 27 Aug 2010 13:00:51 +0000 (16:00 +0300)
Reviewed by Sami Rämö

src/ui/userinfo.cpp
src/ui/userinfo.h

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)
index ac51ac9..14be1cf 100644 (file)
@@ -266,7 +266,7 @@ private:
     QString m_userName;                     ///< User's name
 
     GeoCoordinate m_coordinates;            ///< User current coordinates
-    ImageButton *m_findButton;              ///< User find button
+    ImageButton *m_avatar;                  ///< User find button
     UpdateLocationDialog *m_updateLocation; ///< Update location dialog
 };