<file>res/images/led_red_g.png</file>
<file>res/images/led_red_h.png</file>
<file>res/images/led_red_s.png</file>
- <file>res/images/indicator_update1.png</file>
</qresource>
</RCC>
m_vbox->addWidget(view);
m_vbox->setMargin(0);
-// connect(m_personalInfo,SIGNAL(launchMessageUpdate()),this,SLOT(updateMessage()));
+ connect(m_personalInfo,SIGNAL(launchMessageUpdate()),
+ this,SIGNAL(launchUpdateDialog()));
+ connect(m_personalInfo,SIGNAL(launchUpdateFriendsStatus()),
+ this, SIGNAL(updateFriendsData()));
setObjectName("List view");
}
delete m_vbox;
}
-void ListViewScreen::updateMessage()
-{
- qDebug() << __PRETTY_FUNCTION__;
-
- m_locationDialog->exec();
-}
-
void ListViewScreen::userDataChanged(User *user, QList<User *> &friends)
{
qDebug() << __PRETTY_FUNCTION__;
* MEMBER FUNCTIONS AND SLOTS
******************************************************************************/
public slots:
- /**
- * @brief Slot to open Location update dialog
- */
- void updateMessage();
-
void userDataChanged(User* user,QList<User*>& friends);
signals:
void toggleProgressIndicator(bool state);
+ /**
+ * @brief Forwarding signal from InfoTab to parent to open update dialog
+ */
+ void launchUpdateDialog();
+ /**
+ * @brief Forwarding signal from InfoTab to parent to update friends list data
+ */
+ void updateFriendsData();
/*******************************************************************************
* DATA MEMBERS
******************************************************************************/
-public:
- InfoTab *m_personalInfo; ///< Personal info tab
-
private:
+ InfoTab *m_personalInfo; ///< Personal info tab
QVBoxLayout *m_vbox; ///< Holds the graphics view
Pixmap *m_arrowbutton; ///< Button which reveals/hides the info tab when pressed
Pixmap *m_leftSideBar;
this->hide();
m_locationDialog = new UpdateLocationDialog(this);
- connect(m_listViewScreen->m_personalInfo,SIGNAL(launchMessageUpdate()),
+ connect(m_listViewScreen,SIGNAL(launchUpdateDialog()),
this,SLOT(openLocationUpdateDialog()));
connect(this, SIGNAL(reverseGeoReady(QString)), m_locationDialog, SLOT(setAddress(QString)));
connect(this, SIGNAL(userDataChanged(User*,QList<User*>&)), m_listViewScreen,
SLOT(userDataChanged(User*,QList<User*>&)));
- connect(m_listViewScreen->m_personalInfo, SIGNAL(launchUpdateFriendsStatus()),
+ connect(m_listViewScreen, SIGNAL(updateFriendsData()),
this, SIGNAL(refreshUserData()));
connect(m_listViewScreen, SIGNAL(toggleProgressIndicator(bool)), this,