31 class HbGroupBoxPrivate; |
31 class HbGroupBoxPrivate; |
32 |
32 |
33 class HB_WIDGETS_EXPORT HbGroupBox : public HbWidget |
33 class HB_WIDGETS_EXPORT HbGroupBox : public HbWidget |
34 { |
34 { |
35 Q_OBJECT |
35 Q_OBJECT |
36 //Deprecated |
36 Q_PROPERTY( QString heading READ heading WRITE setHeading ) |
37 Q_PROPERTY(QString titleText READ titleText WRITE setTitleText) |
37 Q_PROPERTY( bool collapsable READ isCollapsable WRITE setCollapsable ) |
38 //Deprecated |
38 Q_PROPERTY( bool collapsed READ isCollapsed WRITE setCollapsed ) |
39 Q_PROPERTY(Qt::Alignment textAlignment READ textAlignment WRITE setTextAlignment) |
39 Q_PROPERTY( bool marqueeHeading READ marqueeHeading WRITE setMarqueeHeading ) |
40 |
|
41 Q_PROPERTY(QString heading READ heading WRITE setHeading) |
|
42 Q_PROPERTY(bool collapsable READ isCollapsable WRITE setCollapsable) |
|
43 Q_PROPERTY(bool collapsed READ isCollapsed WRITE setCollapsed) |
|
44 Q_PROPERTY(bool marqueeHeading READ marqueeHeading WRITE setMarqueeHeading) |
|
45 |
40 |
46 public: |
41 public: |
47 explicit HbGroupBox(QGraphicsItem *parent = 0); |
42 explicit HbGroupBox( QGraphicsItem *parent = 0 ); |
48 //Deprecated |
43 ~HbGroupBox( ); |
49 explicit HbGroupBox( const QString &titleText, QGraphicsItem *parent = 0 ); |
|
50 ~HbGroupBox(); |
|
51 |
44 |
52 void setHeading(const QString &text); |
45 void setHeading( const QString &text ); |
53 QString heading() const; |
46 QString heading( ) const; |
54 |
|
55 bool isCollapsable() const; |
|
56 bool isCollapsed() const; |
|
57 |
47 |
58 void setMarqueeHeading(bool marquee = false); |
48 bool isCollapsable( ) const; |
59 bool marqueeHeading() const; |
49 bool isCollapsed( ) const; |
|
50 |
|
51 void setMarqueeHeading( bool marquee = false ); |
|
52 bool marqueeHeading( ) const; |
60 |
53 |
61 void setContentWidget(HbWidget* widget); |
54 void setContentWidget( HbWidget *widget ); |
62 HbWidget* contentWidget() const; |
55 HbWidget *contentWidget( ) const; |
63 |
56 |
64 virtual QGraphicsItem *primitive(HbStyle::Primitive primitive) const; |
57 virtual QGraphicsItem *primitive( HbStyle::Primitive primitive ) const; |
65 |
58 |
66 enum {Type = Hb::ItemType_GroupBox}; |
59 enum { Type = Hb::ItemType_GroupBox }; |
67 int type() const { return Type; } |
60 int type( ) const { return Type; } |
68 |
|
69 //Deprecated |
|
70 void setTitleText(const QString &text); |
|
71 //Deprecated |
|
72 QString titleText() const; |
|
73 |
|
74 //Deprecated |
|
75 void setTitleWidget( HbWidget* widget ); |
|
76 //Deprecated |
|
77 HbWidget* titleWidget( ) const; |
|
78 |
|
79 //Deprecated |
|
80 Qt::Alignment textAlignment() const; |
|
81 //Deprecated |
|
82 void setTextAlignment(Qt::Alignment alignment); |
|
83 |
61 |
84 public slots: |
62 public slots: |
85 void updatePrimitives(); |
63 void updatePrimitives( ); |
86 void setCollapsed(bool collapsed = true); |
64 void setCollapsed( bool collapsed = true ); |
87 void setCollapsable(bool collapsable = true); |
65 void setCollapsable( bool collapsable = true ); |
88 |
66 |
89 signals: |
67 signals: |
90 void clicked(); |
68 void clicked(); |
91 void longPress(const QPointF &delta); |
69 void longPress(const QPointF &delta); |
92 void toggled(bool state); |
70 void toggled(bool state); |
93 |
71 |
94 protected: |
72 protected: |
95 HbGroupBox(HbGroupBoxPrivate &dd, QGraphicsItem *parent); |
73 HbGroupBox( HbGroupBoxPrivate &dd, QGraphicsItem *parent ); |
96 |
74 |
97 private: |
75 private: |
98 Q_DECLARE_PRIVATE_D(d_ptr, HbGroupBox) |
76 Q_DECLARE_PRIVATE_D( d_ptr, HbGroupBox ) |
99 Q_DISABLE_COPY(HbGroupBox) |
77 Q_DISABLE_COPY( HbGroupBox ) |
100 }; |
78 }; |
101 |
79 |
102 #endif //HbGroupBox_H |
80 #endif //HbGroupBox_H |
103 |
81 |