00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef HIGHSCORESVIEWITEM_H
00021 #define HIGHSCORESVIEWITEM_H
00022
00023 #include <QGraphicsWidget>
00024 #include <QModelIndex>
00025 #include <QGraphicsLinearLayout>
00026
00027 namespace Plasma
00028 {
00029 class IconWidget;
00030 class Label;
00031 }
00032
00033 class HighScoresViewItem : public QGraphicsWidget
00034 {
00035 public:
00036 HighScoresViewItem( QGraphicsItem* parent = 0, Qt::WindowFlags wFlags = 0 );
00037 virtual ~HighScoresViewItem();
00038
00039 virtual void setModelIndex( const QModelIndex& index );
00040 QModelIndex modelIndex() const;
00041
00042 protected:
00043 void layoutWidgets();
00044
00045 QGraphicsLinearLayout* m_layout;
00046
00047 private:
00048 QModelIndex m_index;
00049 Plasma::IconWidget* m_playerName;
00050 Plasma::Label* m_score;
00051 Plasma::Label* m_level;
00052 };
00053
00054 #endif // HIGHSCORESVIEWITEM_H
00055