equal
deleted
inserted
replaced
28 #include "hbsmileyengine_p.h" |
28 #include "hbsmileyengine_p.h" |
29 |
29 |
30 #include <QTextCursor> |
30 #include <QTextCursor> |
31 |
31 |
32 #ifdef HB_TEXT_MEASUREMENT_UTILITY |
32 #ifdef HB_TEXT_MEASUREMENT_UTILITY |
33 #include "hbtextmeasurementutility_p.h" |
33 #include "hbtextmeasurementutility_r_p.h" |
34 #include "hbfeaturemanager_r.h" |
34 #include "hbfeaturemanager_r.h" |
35 #endif //HB_TEXT_MEASUREMENT_UTILITY |
35 #endif //HB_TEXT_MEASUREMENT_UTILITY |
36 |
36 |
37 /*! |
37 /*! |
38 \class HbTextEdit |
38 \class HbTextEdit |
171 \reimp |
171 \reimp |
172 */ |
172 */ |
173 void HbTextEdit::resizeEvent(QGraphicsSceneResizeEvent *event) |
173 void HbTextEdit::resizeEvent(QGraphicsSceneResizeEvent *event) |
174 { |
174 { |
175 HbAbstractEdit::resizeEvent(event); |
175 HbAbstractEdit::resizeEvent(event); |
176 |
|
177 document()->setTextWidth(primitive(HbStyle::P_Edit_text)->boundingRect().width()); |
|
178 } |
176 } |
179 |
177 |
180 |
178 |
181 /*! |
179 /*! |
182 \reimp |
180 \reimp |