Personal infotab mods in listviewscreen
[situare] / src / ui / infotab.h
index 350fb7a..788707f 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <QtGui>
 #include <QWidget>
-
+#include "situareuser.h"
 /**
 * @brief InfoTab class.
 * Composite custom widget class used to show user information
@@ -41,6 +41,7 @@ protected:
     * @param aPaintEvent Pointer to paint event
     */
     void paintEvent(QPaintEvent *aPaintEvent);
+    QSize sizeHint() const;
 public:
     /**
     * @brief Constructor
@@ -48,7 +49,6 @@ public:
     * @param parent Parent
     */
     InfoTab(QWidget *parent=0);
-
 public slots:
     /**
     * @brief Sets the users current address
@@ -113,7 +113,8 @@ private:
     QString m_address;        ///< Address from where the new message was sent.
     QString m_time;           ///< Time when the new message was sent
     QPixmap m_avatar;         ///< User's avatar
-    QWidget *widget;
+    QWidget *widget;          ///< Parent of all widgets.
+    SituareUser *situUser;
 };
 
 #endif // INFOTAB_H