Merge branch 'master' into new_panels_with_context_buttons
authorPekka Nissinen <pekka.nissinen@ixonos.com>
Sun, 29 Aug 2010 14:35:04 +0000 (17:35 +0300)
committerPekka Nissinen <pekka.nissinen@ixonos.com>
Sun, 29 Aug 2010 14:35:04 +0000 (17:35 +0300)
Conflicts:
src/ui/userinfopanel.cpp

1  2 
src/engine/engine.cpp
src/ui/mainwindow.cpp
src/ui/userinfo.cpp
src/ui/userinfo.h
src/ui/userinfopanel.cpp
src/ui/userinfopanel.h

Simple merge
Simple merge
@@@ -98,11 -102,18 +88,11 @@@ 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);
 -
 -    connect(updateStatusMessageButton,SIGNAL(clicked()),
 -            this,SLOT(messageUpdate()));
 -
 -    connect(updateFriendsButton,SIGNAL(clicked()),
 -            this, SIGNAL(refreshUserData()));
  
-     connect(m_findButton, SIGNAL(clicked()),
+     connect(m_avatar, SIGNAL(clicked()),
              this, SLOT(findButtonClicked()));
  
      setFixedWidth(BACKGROUND_WIDTH);
Simple merge
@@@ -67,33 -66,23 +67,36 @@@ UserInfoPanel::UserInfoPanel(QWidget *p
      connect(m_userInfo,SIGNAL(requestReverseGeo()),
              this, SIGNAL(requestReverseGeo()));
  
-     connect(m_userInfo, SIGNAL(statusUpdate(QString,bool)),
-             this, SIGNAL(statusUpdate(QString,bool)));
 -    connect(this, SIGNAL(reverseGeoReady(QString)),
 -            m_userInfo, SIGNAL(reverseGeoReady(QString)));
++    connect(m_userInfo, SIGNAL(statusUpdate(QString, bool)),
++            this, SIGNAL(statusUpdate(QString, bool)));
  
 -    connect(m_userInfo, SIGNAL(statusUpdate(QString,bool)),
 -            this, SIGNAL(statusUpdate(QString,bool)));
 +    connect(m_userInfo, SIGNAL(notificateUpdateFailing(QString, bool)),
 +             this, SIGNAL(notificateUpdateFailing(QString, bool)));
  
 -    connect(m_userInfo, SIGNAL(refreshUserData()),
 -            this, SIGNAL(refreshUserData()));
 +    connect(this, SIGNAL(reverseGeoReady(QString)),
 +            m_userInfo, SIGNAL(reverseGeoReady(QString)));
  
      connect(this, SIGNAL(clearUpdateLocationDialogData()),
              m_userInfo, SLOT(clearUpdateLocationDialogData()));
  
 -    connect(m_userInfo, SIGNAL(notificateUpdateFailing(QString, bool)),
 -            this, SIGNAL(notificateUpdateFailing(QString, bool)));
 -
+     connect(this, SIGNAL(collapse()),
+             m_userInfo, SLOT(collapse()));
++
 +    ImageButton *updateFriendsButton = new ImageButton(":/res/images/refresh.png",
 +                                                       ":/res/images/refresh_s.png",
 +                                                       "", this);
 +    ImageButton *updateStatusMessageButton = new ImageButton(":/res/images/send_position.png",
 +                                                             ":/res/images/send_position_s.png",
 +                                                             "", this);
 +
 +    m_contextButtonLayout->addWidget(updateFriendsButton);
 +    m_contextButtonLayout->addWidget(updateStatusMessageButton);
 +
 +    connect(updateFriendsButton, SIGNAL(clicked()),
 +            this, SIGNAL(refreshUserData()));
 +
 +    connect(updateStatusMessageButton, SIGNAL(clicked()),
 +            m_userInfo, SLOT(messageUpdate()));
  }
  
  void UserInfoPanel::userDataReceived(User *user)
Simple merge