src/declarative/graphicsitems/qdeclarativetextedit_p_p.h
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    68 
    68 
    69 public:
    69 public:
    70     QDeclarativeTextEditPrivate()
    70     QDeclarativeTextEditPrivate()
    71       : color("black"), hAlign(QDeclarativeTextEdit::AlignLeft), vAlign(QDeclarativeTextEdit::AlignTop),
    71       : color("black"), hAlign(QDeclarativeTextEdit::AlignLeft), vAlign(QDeclarativeTextEdit::AlignTop),
    72       imgDirty(true), dirty(false), richText(false), cursorVisible(false), focusOnPress(true),
    72       imgDirty(true), dirty(false), richText(false), cursorVisible(false), focusOnPress(true),
    73       persistentSelection(true), clickCausedFocus(false), textMargin(0.0), lastSelectionStart(0), lastSelectionEnd(0),
    73       showInputPanelOnFocus(true), clickCausedFocus(false), persistentSelection(true), textMargin(0.0),
    74       cursorComponent(0), cursor(0), format(QDeclarativeTextEdit::AutoText), document(0),
    74       lastSelectionStart(0), lastSelectionEnd(0), cursorComponent(0), cursor(0),
    75       wrapMode(QDeclarativeTextEdit::NoWrap),
    75       format(QDeclarativeTextEdit::AutoText), document(0), wrapMode(QDeclarativeTextEdit::NoWrap),
    76       selectByMouse(false),
    76       selectByMouse(false),
    77       yoff(0)
    77       yoff(0)
    78     {
    78     {
       
    79 #ifdef Q_OS_SYMBIAN
       
    80         if (QSysInfo::symbianVersion() == QSysInfo::SV_SF_1 || QSysInfo::symbianVersion() == QSysInfo::SV_SF_3) {
       
    81             showInputPanelOnFocus = false;
       
    82         }
       
    83 #endif
    79     }
    84     }
    80 
    85 
    81     void init();
    86     void init();
    82 
    87 
    83     void updateDefaultTextOption();
    88     void updateDefaultTextOption();
    99     bool imgDirty : 1;
   104     bool imgDirty : 1;
   100     bool dirty : 1;
   105     bool dirty : 1;
   101     bool richText : 1;
   106     bool richText : 1;
   102     bool cursorVisible : 1;
   107     bool cursorVisible : 1;
   103     bool focusOnPress : 1;
   108     bool focusOnPress : 1;
       
   109     bool showInputPanelOnFocus : 1;
       
   110     bool clickCausedFocus : 1;
   104     bool persistentSelection : 1;
   111     bool persistentSelection : 1;
   105     bool clickCausedFocus : 1;
       
   106     qreal textMargin;
   112     qreal textMargin;
   107     int lastSelectionStart;
   113     int lastSelectionStart;
   108     int lastSelectionEnd;
   114     int lastSelectionEnd;
   109     QDeclarativeComponent* cursorComponent;
   115     QDeclarativeComponent* cursorComponent;
   110     QDeclarativeItem* cursor;
   116     QDeclarativeItem* cursor;