Removed unnecessary includes and rows.
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Wed, 11 Aug 2010 07:39:16 +0000 (10:39 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Wed, 11 Aug 2010 07:39:16 +0000 (10:39 +0300)
src/ui/extendedlistitem.h
src/ui/extendedlistitemdelegate.h
src/ui/extendedlistitemstore.h
src/ui/friendlistitem.h
src/ui/listitem.h
src/ui/listitemdelegate.h
src/ui/listview.cpp
src/ui/listview.h

index 7fd1909..440d300 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef EXTENDEDLISTITEM_H
 #define EXTENDEDLISTITEM_H
 
-#include "../coordinates/geocoordinate.h"
-
 #include "listitem.h"
 
 class ExtendedListItemStore;
@@ -43,7 +41,8 @@ public:
     /**
     * @brief Clears sub items.
     *
-
+    * Clears sub items' list and deletes items. Sets item default and
+    * extended height to default values.
     */
     void clearSubItems();
 
index 5de6e14..c5da470 100644 (file)
@@ -8,9 +8,10 @@
 */
 class ExtendedListItemDelegate : public ListItemDelegate
 {
+
 public:
     /**
-    * @brief Constructor
+    * @brief Constructor.
     *
     * @param parent QWidget
     */
index c0b3ee1..7e00228 100644 (file)
@@ -4,10 +4,9 @@
 #include <QPixmap>
 #include <QRect>
 #include <QString>
-#include <QMetaType>
 
 /**
-* @brief Store ExtendedListItem data.
+* @brief Stores ExtendedListItem data.
 */
 class ExtendedListItemStore
 {
index 3f5b968..a83a970 100644 (file)
 #ifndef FRIENDLISTITEM_H
 #define FRIENDLISTITEM_H
 
-#include <QWidget>
-#include <QTreeWidgetItem>
-#include <QListWidgetItem>
-
 #include "../user/user.h"
 #include "extendedlistitem.h"
 
@@ -47,16 +43,11 @@ public:
     * @brief Destructor.
     */
     ~FriendListItem();
+
 /*******************************************************************************
  * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
  ******************************************************************************/
-    /**
-    * @brief Returns item's coordinates.
-    *
-    * @return item's coordinates
-    */
-    GeoCoordinate coordinates();
-
+public:
     /**
     * @brief Returns item's ID.
     *
@@ -69,6 +60,13 @@ public:
 ******************************************************************************/
 public:
     /**
+    * @brief Returns item's coordinates.
+    *
+    * @return item's coordinates
+    */
+    GeoCoordinate coordinates();
+
+    /**
     * @brief Set user data for this item.
     *
     * @param user User pointer
index 653687a..254fafd 100644 (file)
 
 #include <QListWidgetItem>
 
-class User;
-
-class GeoCoordinate;
-
 /**
 * @brief Base class for list items.
 *
@@ -35,6 +31,7 @@ class GeoCoordinate;
 */
 class ListItem : public QListWidgetItem
 {
+
 public:
     /**
     * @brief Constructor.
index e35a2d5..e9a2c64 100644 (file)
@@ -68,9 +68,9 @@ public:
 * DATA MEMBERS
 ******************************************************************************/
 private:
-    QPixmap m_backgroundTopImage;   ///< Top background image
-    QPixmap m_backgroundMiddleImage;   ///< Middle background image
     QPixmap m_backgroundBottomImage;   ///< Bottom background image
+    QPixmap m_backgroundMiddleImage;   ///< Middle background image
+    QPixmap m_backgroundTopImage;       ///< Top background image
 };
 
 #endif // LISTITEMDELEGATE_H
index 1c03179..051f17c 100644 (file)
@@ -147,7 +147,6 @@ void ListView::listItemClicked(QListWidgetItem *item)
 
             currentItem->setSelected(true);
         }
-
         m_previousItem = currentItem;
     }
 }
index 40a1660..8e98a4b 100644 (file)
@@ -138,8 +138,6 @@ public:
     */
     ListItem *listItem(const QString &itemID);
 
-private:
-
 protected slots:
     /**
     * @brief Slot for list item clicked.