emailuis/nmailuiwidgets/src/nmhtmllineedit.cpp
changeset 54 997a02608b3a
parent 30 759dc5235cdb
child 68 83cc6bae1de8
equal deleted inserted replaced
53:bf7eb7911fc5 54:997a02608b3a
    24  */
    24  */
    25 NmHtmlLineEdit::NmHtmlLineEdit(QGraphicsItem *parent) :
    25 NmHtmlLineEdit::NmHtmlLineEdit(QGraphicsItem *parent) :
    26     HbLineEdit(parent)
    26     HbLineEdit(parent)
    27 {
    27 {
    28     NM_FUNCTION;
    28     NM_FUNCTION;
       
    29 
       
    30     // Disable scrolling so that baunch effect works correctly
       
    31     HbAbstractEdit::setScrollable(false);
       
    32     HbAbstractEdit::scrollArea()->setScrollDirections(0);
    29 }
    33 }
    30 
    34 
    31 /*!
    35 /*!
    32     Destructor
    36     Destructor
    33  */
    37  */
    94 {
    98 {
    95     NM_FUNCTION;
    99     NM_FUNCTION;
    96     
   100     
    97     HbAbstractEdit::setPlainText(text);
   101     HbAbstractEdit::setPlainText(text);
    98 }
   102 }
       
   103 
       
   104 /*!
       
   105  *  Returns the rectangle for the cursor.
       
   106  */
       
   107 QRectF NmHtmlLineEdit::rectForCursorPosition() const
       
   108 {
       
   109     NM_FUNCTION;
       
   110     
       
   111     return HbLineEdit::rectForPosition(cursorPosition());
       
   112 }