--- /dev/null
+<RCC>
+ <qresource prefix="/">
+ <file>res/images/arrow_left.png</file>
+ <file>res/images/arrow_right.png</file>
+ <file>res/images/clock_small.png</file>
+ <file>res/images/compas_small.png</file>
+ <file>res/images/facebook_user_64.png</file>
+ <file>res/images/list_small.png</file>
+ <file>res/images/reload_icon.png</file>
+ <file>res/images/sendPosition_icon.png</file>
++ <file>res/images/clock.png</file>
++ <file>res/images/compass.png</file>
++ <file>res/images/dummy_Avatar.png</file>
++ <file>res/images/envelope.png</file>
++ <file>res/images/list_item_bottom.png</file>
++ <file>res/images/list_item_middle.png</file>
++ <file>res/images/list_item_top.png</file>
+ </qresource>
+</RCC>
ui/infotab.cpp \
ui/updatelocation/updatelocationdialog.cpp \
ui/updatelocation/texteditautoresizer.cpp \
+ ui/friendlistview.cpp \
+ ui/friendlistitemdelegate.cpp \
+ ui/friendlistitem.cpp \
- ui/friendlistmodel.cpp \
+ engine/engine.cpp \
user/user.cpp
HEADERS += ui/mainwindow.h \
ui/mapviewscreen.h \
facebookservice/facebookcredentials.h \
facebookservice/facebookauthentication.h \
facebookservice/facebookcommon.h \
+ ui/friendlistview.h \
+ ui/friendlistitemdelegate.h \
+ ui/friendlistitem.h \
- ui/friendlistmodel.h \
+ engine/engine.h \
user/user.h
+
QT += network \
webkit
--- /dev/null
+/*
+ Situare - A location system for Facebook
+ Copyright (C) 2010 Ixonos Plc. Authors:
+
+ Jussi Laitinen - jussi.laitinen@ixonos.com
+
+ Situare is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ version 2 as published by the Free Software Foundation.
+
+ Situare is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Situare; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+ USA.
+*/
+
+#include <QVBoxLayout>
+#include <QPushButton>
+#include <QPainter>
+#include <QDebug>
+#include <QPaintEvent>
+#include <QLabel>
+#include <QPixmap>
++#include <QStateMachine>
++#include <QAbstractTransition>
++#include <QPropertyAnimation>
++#include <QSignalTransition>
+
+#include "friendlistitem.h"
++#include "user/user.h"
+
+const int BACKGROUND_TOP_WIDTH = 368;
+const int BACKGROUND_TOP_HEIGHT = 20;
+const int BACKGROUND_MIDDLE_X = 0;
+const int BACKGROUND_MIDDLE_Y = BACKGROUND_TOP_HEIGHT;
+const int BACKGROUND_MIDDLE_WIDTH = 368;
+const int BACKGROUND_MIDDLE_HEIGHT = 106;
+const int BACKGROUND_BOTTOM_X = 0;
+const int BACKGROUND_BOTTOM_Y = BACKGROUND_MIDDLE_Y + BACKGROUND_MIDDLE_HEIGHT;
+const int BACKGROUND_BOTTOM_WIDTH = 368;
+const int BACKGROUND_BOTTOM_HEIGHT = 15;
+const int IMAGE_X = 9;
+const int IMAGE_Y = 0;
+const int IMAGE_WIDTH = 60;
+const int IMAGE_HEIGHT = 60;
+const int CLOCK_X = 75;
+const int CLOCK_Y = 53;
+const int ENVELOPE_X = 75;
+const int ENVELOPE_Y = 77;
+const int COMPASS_X = 75;
+const int COMPASS_Y = 101;
+const int ICON_WIDTH = 24;
+const int ICON_HEIGHT = 24;
+
- const QString BACKGROUND_TOP_PATH = QString(":/resources/list_item_top.png");
- const QString BACKGROUND_MIDDLE_PATH = QString(":/resources/list_item_middle.png");
- const QString BACKGROUND_BOTTOM_PATH = QString(":/resources/list_item_bottom.png");
- const QString CLOCK_PATH = QString(":/resources/clock.png");
- const QString ENVELOPE_PATH = QString(":/resources/envelope.png");
- const QString COMPASS_PATH = QString(":/resources/compass.png");
++const QString BACKGROUND_TOP_PATH = QString(":/res/images/list_item_top.png");
++const QString BACKGROUND_MIDDLE_PATH = QString(":/res/images/list_item_middle.png");
++const QString BACKGROUND_BOTTOM_PATH = QString(":/res/images/list_item_bottom.png");
++const QString CLOCK_PATH = QString(":/res/images/clock.png");
++const QString ENVELOPE_PATH = QString(":/res/images/envelope.png");
++const QString COMPASS_PATH = QString(":/res/images/compass.png");
+
- FriendListItem::FriendListItem()
++FriendListItem::FriendListItem(QWidget *parent)
++ : QWidget(parent)
+{
- QVBoxLayout *layout = new QVBoxLayout(this);
-
+ QWidget *childWidget = new QWidget(this);
+ QPalette palette = childWidget->palette();
- palette.setColor(QPalette::Foreground, QColor::fromRgb(152,152,152));
++ palette.setColor(QPalette::Foreground, QColor::fromRgb(152, 152, 152));
+ childWidget->setPalette(palette);
+ QFont font = QFont("Nokia Sans", 13, QFont::Normal);
+ childWidget->setFont(font);
+
+ QGridLayout *infoLayout = new QGridLayout(this);
+ infoLayout->setSpacing(0);
+ infoLayout->setMargin(0);
+ childWidget->setLayout(infoLayout);
+
+ QLabel *clockLabel = new QLabel(this);
+ clockLabel->setPixmap(QPixmap(CLOCK_PATH));
+ QLabel *envelopeLabel = new QLabel(this);
+ envelopeLabel->setPixmap(QPixmap(ENVELOPE_PATH));
+ QLabel *compassLabel = new QLabel(this);
+ compassLabel->setPixmap(QPixmap(COMPASS_PATH));
+
- updatedLabel = new QLabel("22 min ago", this);
- statusTextLabel = new QLabel("Just testing Situare...", this);
- locationLabel = new QLabel("Some address 10, 1234 City", this);
++ m_updatedLabel = new QLabel("", this);
++ m_updatedLabel->setWordWrap(true);
++ m_statusTextLabel = new QLabel("", this);
++ m_statusTextLabel->setWordWrap(true);
++ m_locationLabel = new QLabel("", this);
++ m_locationLabel->setWordWrap(true);
+
+ infoLayout->setColumnStretch(1, 1);
+ infoLayout->setColumnMinimumWidth(0, 28);
++ infoLayout->setRowMinimumHeight(0, 28);
+
- infoLayout->addWidget(clockLabel, 0, 0);
- infoLayout->addWidget(updatedLabel, 0, 1);
- infoLayout->addWidget(envelopeLabel, 1, 0);
- infoLayout->addWidget(statusTextLabel, 1, 1);
- infoLayout->addWidget(compassLabel, 2, 0);
- infoLayout->addWidget(locationLabel, 2, 1);
++ infoLayout->addWidget(clockLabel, 0, 0, 1, 1, Qt::AlignTop);
++ infoLayout->addWidget(m_updatedLabel, 0, 1);
++ infoLayout->addWidget(envelopeLabel, 1, 0, 1, 1, Qt::AlignTop);
++ infoLayout->addWidget(m_statusTextLabel, 1, 1);
++ infoLayout->addWidget(compassLabel, 2, 0, 1, 1, Qt::AlignTop);
++ infoLayout->addWidget(m_locationLabel, 2, 1);
+
- childWidget->setGeometry(75, 53, 250, 70);
++ childWidget->setGeometry(75, 53, 368-75-5, 141-53-5);
+
+ this->setMinimumSize(368, 141);
++
++// QStateMachine machine;
++// QState *state1 = new QState(&machine);
++// QState *state2 = new QState(&machine);
++// machine.setInitialState(state1);
++
++// QPushButton *btn = new QPushButton(this);
++
++// //state1->assignProperty(childWidget, "geometry", QRect(0, 0, 150, 50));
++// state1->assignProperty(childWidget, "pos", QPointF(0, 0));
++// //state2->assignProperty(childWidget, "geometry", QRect(0, 0, 150, 100));
++// state2->assignProperty(childWidget, "pos", QPointF(100, 100));
++//
++//
++// QAbstractTransition *t1 = state1->addTransition(btn, SIGNAL(clicked()), state2);
++// //t1->addAnimation(new QPropertyAnimation(childWidget, "geometry"));
++// t1->addAnimation(new QPropertyAnimation(childWidget, "pos"));
++//
++// QAbstractTransition *t2 = state2->addTransition(btn, SIGNAL(clicked()), state1);
++// //t2->addAnimation(new QPropertyAnimation(childWidget, "geometry"));
++// t2->addAnimation(new QPropertyAnimation(childWidget, "pos"));
++//
++// machine.start();
+}
+
- void FriendListItem::paintEvent(QPaintEvent *)
++void FriendListItem::setData(const User &user)
+{
- QPainter painter(this);
++ m_name = user.name();
++ m_updatedLabel->setText(user.timestamp());
++ m_statusTextLabel->setText(user.note());
++ m_locationLabel->setText(user.address());
++ m_image = user.profileImageUrl().toString();
++}
+
- QRect itemRect = QRect(0, 0, 368, 141);
++void FriendListItem::mousePressEvent(QMouseEvent *event)
++{
++ emit changeState();
++}
+
++void FriendListItem::paintEvent(QPaintEvent *event)
++{
++ QPainter painter(this);
++ //QRect itemRect = event->rect();
++ QRect itemRect = QRect(0, 0, 368, 141);
++ qDebug() << event->rect();
+ //Draw background
+ QRect topRect = QRect(itemRect.left(), itemRect.top(), BACKGROUND_TOP_WIDTH,
+ BACKGROUND_TOP_HEIGHT);
+ painter.drawPixmap(topRect, QPixmap(BACKGROUND_TOP_PATH));
+
+ QRect middleRect = QRect(topRect.left(), topRect.bottom() + 1, BACKGROUND_MIDDLE_WIDTH,
+ BACKGROUND_MIDDLE_HEIGHT);
+ painter.drawPixmap(middleRect, QPixmap(BACKGROUND_MIDDLE_PATH));
+
- QRect bottomRect = QRect(topRect.left(), middleRect.bottom() + 1, BACKGROUND_BOTTOM_WIDTH,
- BACKGROUND_BOTTOM_HEIGHT);
- painter.drawPixmap(bottomRect, QPixmap(BACKGROUND_BOTTOM_PATH));
++ if (itemRect.height() >= (141 - 15)) {
++ QRect bottomRect = QRect(topRect.left(), middleRect.bottom() + 1, BACKGROUND_BOTTOM_WIDTH,
++ BACKGROUND_BOTTOM_HEIGHT);
++ painter.drawPixmap(bottomRect, QPixmap(BACKGROUND_BOTTOM_PATH));
++ }
+
+ //Draw image
- QString image = QString(":/resources/dummy_Avatar.png");
++ QString image = QString(":/res/images/dummy_Avatar.png");
+ QRect imageRect = QRect(itemRect.left() + IMAGE_X, itemRect.top() + IMAGE_Y,
+ IMAGE_WIDTH, IMAGE_HEIGHT);
+ painter.drawPixmap(imageRect, QPixmap(image));
+
+ //Draw name
+ QRect nameRect = QRect(itemRect.left() + IMAGE_WIDTH + 11, itemRect.top() + 15, itemRect.width(),
+ itemRect.height());
- QString name = QString("This is friend item");
+ QPen whitePen(QColor(Qt::white), 1, Qt::SolidLine);
+ painter.setPen(whitePen);
+ painter.setFont(QFont( "Nokia Sans", 18, QFont::Normal));
- painter.drawText(nameRect, Qt::AlignLeft | Qt::AlignTop | Qt::TextWordWrap, name, &nameRect);
++ painter.drawText(nameRect, Qt::AlignLeft | Qt::AlignTop | Qt::TextWordWrap, m_name, &nameRect);
+}
--- /dev/null
+/*
+ Situare - A location system for Facebook
+ Copyright (C) 2010 Ixonos Plc. Authors:
+
+ Jussi Laitinen - jussi.laitinen@ixonos.com
+
+ Situare is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ version 2 as published by the Free Software Foundation.
+
+ Situare is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Situare; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+ USA.
+*/
+
+#ifndef FRIENDLISTITEM_H
+#define FRIENDLISTITEM_H
+
+#include <QWidget>
+#include <QTreeWidgetItem>
+#include <QListWidgetItem>
+
++#include "user/user.h"
++
+class QLabel;
+
+class FriendListItem : public QWidget
+{
++ Q_OBJECT
+
+public:
- FriendListItem();
++ FriendListItem(QWidget *parent = 0);
++
++ void setData(const User &user);
+
+protected:
+ void paintEvent(QPaintEvent *);
+
++ void mousePressEvent(QMouseEvent *);
++
+/******************************************************************************
+* MEMBER FUNCTIONS AND SLOTS
+******************************************************************************/
+public:
+ enum ListRole { Name, Image, Distance, Updated, StatusText, Location };
+
++
++signals:
++ void changeState();
++
+/******************************************************************************
+* DATA MEMBERS
+******************************************************************************/
+private:
+
- QLabel *updatedLabel;
- QLabel *statusTextLabel;
- QLabel *locationLabel;
++ QLabel *m_updatedLabel;
++ QLabel *m_statusTextLabel;
++ QLabel *m_locationLabel;
++ QString m_name;
++ QString m_image;
+};
+
+#endif // FRIENDLISTITEM_H
--- /dev/null
+/*
+ Situare - A location system for Facebook
+ Copyright (C) 2010 Ixonos Plc. Authors:
+
+ Jussi Laitinen - jussi.laitinen@ixonos.com
+
+ Situare is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ version 2 as published by the Free Software Foundation.
+
+ Situare is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Situare; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+ USA.
+*/
+
++#include <QVBoxLayout>
++
+#include "friendlistview.h"
+
+FriendListView::FriendListView(QWidget *parent)
- : QTreeWidget(parent)
++ : QWidget(parent)
++{
++ m_friendListLayout = new QVBoxLayout(this);
++ m_friendListLayout->setMargin(0);
++ m_friendListLayout->setSpacing(0);
++
++ this->setLayout(m_friendListLayout);
++}
++
++void FriendListView::addWidget(QWidget *widget)
+{
- this->setSelectionMode(QAbstractItemView::SingleSelection);
++ if (!widgets.contains(widget)) {
++ m_friendListLayout->addWidget(widget);
++ widgets.append(widget);
++ }
+}
+
- void FriendListView::setListModel(QAbstractItemModel *model)
++void FriendListView::clear()
+{
++ foreach (QWidget *widget, widgets) {
++ m_friendListLayout->removeWidget(widget);
++ widgets.removeOne(widget);
++ }
+}
--- /dev/null
+/*
+ Situare - A location system for Facebook
+ Copyright (C) 2010 Ixonos Plc. Authors:
+
+ Jussi Laitinen - jussi.laitinen@ixonos.com
+
+ Situare is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ version 2 as published by the Free Software Foundation.
+
+ Situare is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Situare; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+ USA.
+*/
+
+#ifndef FRIENDLISTVIEW_H
+#define FRIENDLISTVIEW_H
+
+#include <QListWidget>
+#include <QTreeWidget>
++#include <QVBoxLayout>
++#include <QWidget>
+
- class FriendListView : public QTreeWidget
++class FriendListView : public QWidget
+{
+ Q_OBJECT
+
+public:
+ FriendListView(QWidget *parent = 0);
+
- public:
- void setListModel(QAbstractItemModel *model);
++ void addWidget(QWidget *widget);
++ void clear();
++
++private:
++ QVBoxLayout *m_friendListLayout;
++ QList<QWidget *> widgets;
+};
+
+#endif // FRIENDLISTVIEW_H
#include <QtGui/QVBoxLayout>
#include <QGraphicsProxyWidget>
#include <QStateMachine>
-#include "listviewscreen.h"
+#include <QListView>
#include <QDebug>
+#include <QScrollArea>
+
+#include "listviewscreen.h"
+#include "friendlistitemdelegate.h"
+#include "friendlistview.h"
+#include "friendlistitem.h"
+#include "friendlistmodel.h"
++#include "user/user.h"
ListViewScreen::ListViewScreen(QWidget *parent)
: QWidget(parent)
{
-
- m_arrowbutton = new Pixmap(QPixmap(":/resources/arrow_right.png"));
+ //DEBUG
+// FriendListView *friendListView = new FriendListView(this);
+// friendListView->setItemDelegate(new FriendListItemDelegate());
+
+// FriendListItem *item1 = new FriendListItem();
+// item1->setData(FriendListItem::Name, "Name 1");
+// item1->setData(FriendListItem::Updated, "2 days ago");
+// QString test = QString("Hello Maemo Situare! Hello Maemo Situare! ");
+// test.append("Hello Maemo Situare! ");
+// test.append("Hello Maemo Situare! ");
+// test.append("Hello Maemo Situare! ");
+// test.append("Hello Maemo Situare! ");
+// item1->setData(FriendListItem::StatusText, test);
+// item1->setData(FriendListItem::Location, "Kiviharjunlenkki 1E, 91910 Oulu");
+// item1->setData(FriendListItem::Image, ":/resources/dummy_Avatar.png");
+// FriendListItem *item2 = new FriendListItem();
+// item2->setData(FriendListItem::Name, "Name 2");
+// item2->setData(FriendListItem::Updated, "2 days ago");
+// item2->setData(FriendListItem::StatusText, "Hello Maemo Situare!");
+// item2->setData(FriendListItem::Location, "Kiviharjunlenkki 1E, 91910 Oulu");
+// item2->setData(FriendListItem::Image, ":/resources/dummy_Avatar.png");
+// FriendListItem *item3 = new FriendListItem();
+// item3->setData(FriendListItem::Name, "Name 3");
+// item3->setData(FriendListItem::Updated, "2 days ago");
+// item3->setData(FriendListItem::StatusText, "Hello Maemo Situare!");
+// item3->setData(FriendListItem::Location, "Kiviharjunlenkki 1E, 91910 Oulu");
+// item3->setData(FriendListItem::Image, ":/resources/dummy_Avatar.png");
+// FriendListItem *item4 = new FriendListItem();
+// item4->setData(FriendListItem::Name, "Name 4");
+// item4->setData(FriendListItem::Updated, "2 days ago");
+// item4->setData(FriendListItem::StatusText, "Hello Maemo Situare!");
+// item4->setData(FriendListItem::Location, "Kiviharjunlenkki 1E, 91910 Oulu");
+// item4->setData(FriendListItem::Image, ":/resources/dummy_Avatar.png");
+// FriendListItem *item5 = new FriendListItem();
+// item5->setData(FriendListItem::Name, "Name 5");
+// item5->setData(FriendListItem::Updated, "2 days ago");
+// item5->setData(FriendListItem::StatusText, "Hello Maemo Situare!");
+// item5->setData(FriendListItem::Location, "Kiviharjunlenkki 1E, 91910 Oulu");
+// item5->setData(FriendListItem::Image, ":/resources/dummy_Avatar.png");
+// FriendListItem *item6 = new FriendListItem();
+// item6->setData(FriendListItem::Name, "Name 6");
+// item6->setData(FriendListItem::Updated, "2 days ago");
+// item6->setData(FriendListItem::StatusText, "Hello Maemo Situare!");
+// item6->setData(FriendListItem::Location, "Kiviharjunlenkki 1E, 91910 Oulu");
+// item6->setData(FriendListItem::Image, ":/resources/dummy_Avatar.png");
+// friendListView->addItem(item1);
+// friendListView->addItem(item2);
+// friendListView->addItem(item3);
+// friendListView->addItem(item4);
+// friendListView->addItem(item5);
+// friendListView->addItem(item6);
+
- QWidget *friendListView = new QWidget(this);
- QVBoxLayout *friendListLayout = new QVBoxLayout(this);
- friendListLayout->setMargin(0);
- friendListLayout->setSpacing(0);
- friendListView->setLayout(friendListLayout);
- FriendListItem *item1 = new FriendListItem();
- FriendListItem *item2 = new FriendListItem();
- FriendListItem *item3 = new FriendListItem();
- FriendListItem *item4 = new FriendListItem();
- FriendListItem *item5 = new FriendListItem();
- FriendListItem *item6 = new FriendListItem();
-
- friendListLayout->addWidget(item1);
- friendListLayout->addWidget(item2);
- friendListLayout->addWidget(item3);
- friendListLayout->addWidget(item4);
- friendListLayout->addWidget(item5);
- friendListLayout->addWidget(item6);
++ FriendListView *friendListView = new FriendListView(this);
++
++ User user1(QString("Kiviharjunlenkki 1E, 91910 Oulu"), QPointF(25.5, 65), QString("User 1"),
++ QString("Hello Maemo Situare!"), QUrl("http://static.ak.fbcdn.net/pics/q_silhouette.gif"), QString("2 days ago"), false, QString(),
++ QString(), 12.2);
++ User user2(QString("Kiviharjunlenkki 1E, 91910 Oulu"), QPointF(25.5, 65), QString("User 2"),
++ QString("Hello Maemo Situare! Hello Maemo Situare! Hello Maemo Situare!"),
++ QUrl("http://static.ak.fbcdn.net/pics/q_silhouette.gif"), QString("2 days ago"), false, QString(),
++ QString(), 12.2);
++ FriendListItem *item1 = new FriendListItem(friendListView);
++ item1->setData(user1);
++ FriendListItem *item2 = new FriendListItem(friendListView);
++ item2->setData(user1);
++ FriendListItem *item3 = new FriendListItem(friendListView);
++ item3->setData(user1);
++ FriendListItem *item4 = new FriendListItem(friendListView);
++ item4->setData(user2);
++ FriendListItem *item5 = new FriendListItem(friendListView);
++ item5->setData(user1);
++ FriendListItem *item6 = new FriendListItem(friendListView);
++ item6->setData(user1);
++
++ friendListView->addWidget(item1);
++ friendListView->addWidget(item2);
++ friendListView->addWidget(item3);
++ friendListView->addWidget(item4);
++ friendListView->addWidget(item5);
++ friendListView->addWidget(item6);
+
+ QScrollArea *friendListScroll = new QScrollArea();
+ friendListScroll->setWidget(friendListView);
+ //DEBUG
+
+
+ m_arrowbutton = new Pixmap(QPixmap(":/res/images/arrow_right.png"));
m_personalInfo = new InfoTab;
- m_personalInfo->setAvatar(QPixmap(":/resources/facebook_user_64.png"));
+ m_personalInfo->setAvatar(QPixmap(":/res/images/facebook_user_64.png"));
m_personalInfo->setUserName("Fred Facebook");
m_personalInfo->setMessageText("Hello Maemo Situare !");
m_personalInfo->setTime("1 hour ago");
machine->start();
- m_vbox = new QHBoxLayout(this);
+ m_vbox = new QVBoxLayout(this);
- m_vbox->addWidget(view);
+// m_vbox->addWidget(view);
+ //DEBUG
+ //m_vbox->addWidget(friendListView);
+ m_vbox->addWidget(friendListScroll);
+ //DEBUG
m_vbox->setMargin(0);
- connect(m_personalInfo,SIGNAL(launchMessageUpdate()),this,SLOT(updateMessage()));
+ //connect(m_personalInfo,SIGNAL(launchMessageUpdate()),this,SLOT(updateMessage()));
}
ListViewScreen::~ListViewScreen()
#include <QtGui>
#include "infotab.h"
#include "pixmap.h"
- #include "updatelocation/updatelocationdialog.h"
++#include "user/user.h"
+
/**
* @brief List View class. Used for displaying List of friends