2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Jussi Laitinen - jussi.laitinen@ixonos.com
7 Situare is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 version 2 as published by the Free Software Foundation.
11 Situare is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Situare; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
23 #ifndef EXTENDEDLISTITEMSTORE_H
24 #define EXTENDEDLISTITEMSTORE_H
31 * @brief Stores ExtendedListItem data.
33 * @author Jussi Laitinen - jussi.laitinen (at) ixonos.com
35 class ExtendedListItemStore
42 * @param text item text
44 ExtendedListItemStore(const QString &text);
46 /*******************************************************************************
47 * MEMBER FUNCTIONS AND SLOTS
48 ******************************************************************************/
51 * @brief Returns icon.
60 * @param icon item icon
62 void setIcon(const QPixmap &icon);
65 * @brief Sets shortended text.
67 * @param shortenedText shortened text
69 void setShortenedText(const QString &shortenedText);
72 * @brief Returns shortened text.
76 QString shortenedText() const;
79 * @brief Sets text rect.
81 * @param textRect text rect
83 void setTextRect(const QRect &textRect);
93 * @brief Returns text rect.
97 QRect textRect() const;
99 /******************************************************************************
101 ******************************************************************************/
103 QPixmap m_icon; ///< Icon pixmap
104 QRect m_textRect; ///< Text rect
105 QString m_text; ///< Text string
106 QString m_shortenedText; ///< Shortened text string
109 #endif // EXTENDEDLISTITEMSTORE_H