--- a/phoneuis/bubblemanager2/bubblecore/src/bubbleimagewidget.h Tue Jun 15 14:14:38 2010 +0100
+++ b/phoneuis/bubblemanager2/bubblecore/src/bubbleimagewidget.h Thu Jul 22 16:33:21 2010 +0100
@@ -26,6 +26,8 @@
class BubbleImageWidget : public HbWidget
{
Q_OBJECT
+
+ Q_PROPERTY(bool keepSquareShape READ keepSquareShape WRITE setKeepSquareShape)
public:
explicit BubbleImageWidget(
@@ -35,6 +37,9 @@
void setImage(const QString& name);
+ bool keepSquareShape() const;
+ void setKeepSquareShape(bool keepSquare);
+
protected slots:
void imageLoaded(QString imageFileName);
@@ -44,10 +49,18 @@
const QStyleOptionGraphicsItem* option,
QWidget* widget);
+ QSizeF sizeHint(
+ Qt::SizeHint which,
+ const QSizeF & constraint) const;
+
+ void resizeEvent(QGraphicsSceneResizeEvent * event);
+
private:
BubbleImageManager& mImageManager;
QString mImageName;
HbIconItem* mDefaultAvatar;
+ bool mKeepSquareShape;
+ int mUpdateCount;
};
#endif /* BUBBLEIMAGEWIDGET_H_ */