--- a/src/hbwidgets/widgets/hbcheckbox.cpp Wed Aug 18 10:05:37 2010 +0300
+++ b/src/hbwidgets/widgets/hbcheckbox.cpp Thu Sep 02 20:44:51 2010 +0300
@@ -40,37 +40,6 @@
#include <hbtapgesture.h>
#endif
-
-/*
- Spacer class.
-*/
-class HbCheckBoxSpacer: public HbWidgetBase
-{
-
-public:
- HbCheckBoxSpacer( QGraphicsItem *parent = 0 );
- QSizeF sizeHint( Qt::SizeHint which, const QSizeF &constraint = QSizeF( ) ) const;
-};
-
-HbCheckBoxSpacer::HbCheckBoxSpacer( QGraphicsItem *parent )
- : HbWidgetBase( parent )
-{
-#if QT_VERSION >= 0x040600
- setFlag(QGraphicsItem::ItemHasNoContents, true);
-#endif
-}
-
-QSizeF HbCheckBoxSpacer::sizeHint( Qt::SizeHint which, const QSizeF &constraint ) const
-{
- Q_UNUSED( constraint );
-
- if ( which == Qt::MaximumSize ) {
- return QSizeF( QWIDGETSIZE_MAX, QWIDGETSIZE_MAX );
- }
- return QSizeF( 0.f, 0.f );
-}
-
-
/*
private class
*/
@@ -169,7 +138,8 @@
toggle state.
Checkbox has default icon for checked,unchecked and partiallyChecked states.
- The text can be set in the constructor or with setText().
+ The text can be set in the constructor or with setText().For long text checkbox will show
+ multiline text,default checkbox will have text up to three lines.
Example usage:
\code
@@ -202,9 +172,6 @@
d->q_ptr = this;
setCheckable( true );
d->createPrimitives( );
- // creattion of top and bottom spacer.
- HbStyle::setItemName( new HbCheckBoxSpacer( this ), "topSpacer" );
- HbStyle::setItemName( new HbCheckBoxSpacer( this ), "bottomSpacer" );
#ifdef HB_GESTURE_FW
grabGesture( Qt::TapGesture );
#endif
@@ -225,10 +192,6 @@
d->mText = text;
setCheckable( true );
d->createPrimitives( );
- // creattion of top and bottom spacer.
- HbStyle::setItemName( new HbCheckBoxSpacer(this), "topSpacer");
- HbStyle::setItemName( new HbCheckBoxSpacer(this), "bottomSpacer");
-
}
/*!