Added info tab to view.
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Thu, 6 May 2010 10:11:45 +0000 (13:11 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Thu, 6 May 2010 10:11:45 +0000 (13:11 +0300)
src/ui/friendlistitem.cpp
src/ui/listviewscreen.cpp
src/ui/listviewscreen.h

index a9a4933..a305b7d 100644 (file)
@@ -58,6 +58,10 @@ const int MOUSE_PRESS_AREA_HEIGHT = 20; ///< Area height for item height togglin
 const QFont NOKIA_FONT_NORMAL = QFont( "Nokia Sans", 18, QFont::Normal);    ///< Normal font
 const QFont NOKIA_FONT_SMALL = QFont( "Nokia Sans", 13, QFont::Normal);     ///< Small font
 
+/**
+* @var STYLESHEET
+* @brief Stylesheet for FriendListItem
+*/
 const QString STYLESHEET = "QWidget#listItem { border-image: url(:/res/images/list_item.png) 20%; " \
                            "border-width: 20px 14px 16px 14px; } " \
                            "QLabel { color: #989898; }" \
index 4901105..a0b6240 100644 (file)
@@ -103,15 +103,6 @@ ListViewScreen::ListViewScreen(QWidget *parent)
     scene->addItem(m_arrowRight);
     scene->addItem(m_arrowLeft);
 
-    //Friend list
-//    QGraphicsProxyWidget *scrollProxy = new QGraphicsProxyWidget();
-//    scrollProxy->setWidget(friendListScroll);
-//    scrollProxy->setZValue(m_personalInfoBackGround->zValue() - 3);
-//    scrollProxy->setMinimumSize(790 - 400, 480 - 56);
-//    scene->addItem(scrollProxy);
-//    scrollProxy->setPos(410, 0);
-    //Friend list
-
     m_leftSideBar->setPos(0,0);
 
     QGraphicsView *view = new QGraphicsView(scene);
@@ -192,8 +183,8 @@ ListViewScreen::ListViewScreen(QWidget *parent)
     m_trans2->addAnimation(m_anim14);
     machine->start();
 
-    m_vbox = new QVBoxLayout(this);
-    //m_vbox->addWidget(view);
+    m_vbox = new QHBoxLayout(this);
+    m_vbox->addWidget(view);
     m_vbox->addWidget(friendListScroll);
     m_vbox->setMargin(0);
 
index c53dcb5..83aadb0 100644 (file)
@@ -86,7 +86,7 @@ signals:
  ******************************************************************************/
 private:
     InfoTab *m_personalInfo;    ///< Personal info tab
-    QVBoxLayout *m_vbox;    ///< Holds the graphics view
+    QHBoxLayout *m_vbox;    ///< Holds the graphics view
     Pixmap *m_arrowbutton;    ///< Button which reveals/hides the info tab when pressed
     Pixmap *m_leftSideBar; ///< Left side sidebar image
     Pixmap *m_slidingLeftSideBar; ///< Left side sliding sidebar image