20 |
20 |
21 #include <hgwidgets/hgmediawall.h> |
21 #include <hgwidgets/hgmediawall.h> |
22 #include "hgwidgets_p.h" |
22 #include "hgwidgets_p.h" |
23 |
23 |
24 class HgCoverflowContainer; |
24 class HgCoverflowContainer; |
|
25 class HgCenterItemArea; |
|
26 class HbIconItem; |
|
27 class HbTextItem; |
25 |
28 |
26 class HgMediawallPrivate : public HgWidgetPrivate |
29 class HgMediawallPrivate : public HgWidgetPrivate |
27 { |
30 { |
28 Q_DECLARE_PUBLIC(HgMediawall) |
31 Q_DECLARE_PUBLIC(HgMediawall) |
29 |
32 |
32 HgMediawallPrivate(); |
35 HgMediawallPrivate(); |
33 virtual ~HgMediawallPrivate(); |
36 virtual ~HgMediawallPrivate(); |
34 |
37 |
35 void init(Qt::Orientation orientation); |
38 void init(Qt::Orientation orientation); |
36 |
39 |
37 void setTitlePosition(HgMediawall::LabelPosition position); |
|
38 HgMediawall::LabelPosition titlePosition() const; |
|
39 void setDescriptionPosition(HgMediawall::LabelPosition position); |
|
40 HgMediawall::LabelPosition descriptionPosition() const; |
|
41 void setTitleFontSpec(const HbFontSpec &fontSpec); |
40 void setTitleFontSpec(const HbFontSpec &fontSpec); |
42 HbFontSpec titleFontSpec() const; |
41 HbFontSpec titleFontSpec() const; |
43 void setDescriptionFontSpec(const HbFontSpec &fontSpec); |
42 void setDescriptionFontSpec(const HbFontSpec &fontSpec); |
44 HbFontSpec descriptionFontSpec() const; |
43 HbFontSpec descriptionFontSpec() const; |
45 |
44 |
46 |
|
47 HgCoverflowContainer *container(); |
45 HgCoverflowContainer *container(); |
48 const HgCoverflowContainer *container() const; |
46 const HgCoverflowContainer *container() const; |
|
47 |
|
48 private: // From HgWidgetPrivate |
|
49 void updateCurrentItem(const QModelIndex ¤tItem); |
|
50 |
|
51 private: |
|
52 HbTextItem *mTitleItem; |
|
53 HbTextItem *mDescriptionItem; |
|
54 HgCenterItemArea *mCenterItemArea; // Dummy item for calculating correct position for center item |
49 }; |
55 }; |
50 |
56 |
51 #endif //HGMEDIAWALL_P_H |
57 #endif //HGMEDIAWALL_P_H |
52 |
58 |