changeset 33 | 3e2da88830cd |
parent 30 | 5dc02b23752f |
child 37 | 758a864f9613 |
30:5dc02b23752f | 33:3e2da88830cd |
---|---|
70 public: |
70 public: |
71 QDeclarativeTextInputPrivate() : control(new QLineControl(QString())), |
71 QDeclarativeTextInputPrivate() : control(new QLineControl(QString())), |
72 color((QRgb)0), style(QDeclarativeText::Normal), |
72 color((QRgb)0), style(QDeclarativeText::Normal), |
73 styleColor((QRgb)0), hAlign(QDeclarativeTextInput::AlignLeft), |
73 styleColor((QRgb)0), hAlign(QDeclarativeTextInput::AlignLeft), |
74 hscroll(0), oldScroll(0), focused(false), focusOnPress(true), |
74 hscroll(0), oldScroll(0), focused(false), focusOnPress(true), |
75 cursorVisible(false), autoScroll(true), clickCausedFocus(false), |
75 showInputPanelOnFocus(true), clickCausedFocus(false), cursorVisible(false), |
76 selectByMouse(false) |
76 autoScroll(true), selectByMouse(false) |
77 { |
77 { |
78 #ifdef Q_OS_SYMBIAN |
|
79 if (QSysInfo::symbianVersion() == QSysInfo::SV_SF_1 || QSysInfo::symbianVersion() == QSysInfo::SV_SF_3) { |
|
80 showInputPanelOnFocus = false; |
|
81 } |
|
82 #endif |
|
83 |
|
78 } |
84 } |
79 |
85 |
80 ~QDeclarativeTextInputPrivate() |
86 ~QDeclarativeTextInputPrivate() |
81 { |
87 { |
82 delete control; |
88 delete control; |
91 } |
97 } |
92 |
98 |
93 void init(); |
99 void init(); |
94 void startCreatingCursor(); |
100 void startCreatingCursor(); |
95 void focusChanged(bool hasFocus); |
101 void focusChanged(bool hasFocus); |
102 void updateHorizontalScroll(); |
|
103 int calculateTextWidth(); |
|
96 |
104 |
97 QLineControl* control; |
105 QLineControl* control; |
98 |
106 |
99 QFont font; |
107 QFont font; |
100 QColor color; |
108 QColor color; |
113 bool oldValidity; |
121 bool oldValidity; |
114 int hscroll; |
122 int hscroll; |
115 int oldScroll; |
123 int oldScroll; |
116 bool focused; |
124 bool focused; |
117 bool focusOnPress; |
125 bool focusOnPress; |
126 bool showInputPanelOnFocus; |
|
127 bool clickCausedFocus; |
|
118 bool cursorVisible; |
128 bool cursorVisible; |
119 bool autoScroll; |
129 bool autoScroll; |
120 bool clickCausedFocus; |
|
121 bool selectByMouse; |
130 bool selectByMouse; |
122 }; |
131 }; |
123 |
132 |
124 QT_END_NAMESPACE |
133 QT_END_NAMESPACE |
125 |
134 |