aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/items')
-rw-r--r--src/declarative/items/qquicktext.cpp16
-rw-r--r--src/declarative/items/qquicktextedit.cpp12
-rw-r--r--src/declarative/items/qquicktextinput.cpp15
3 files changed, 16 insertions, 27 deletions
diff --git a/src/declarative/items/qquicktext.cpp b/src/declarative/items/qquicktext.cpp
index bf736e6a10..36d15c6a64 100644
--- a/src/declarative/items/qquicktext.cpp
+++ b/src/declarative/items/qquicktext.cpp
@@ -683,14 +683,14 @@ QPixmap QQuickTextPrivate::textLayoutImage(bool drawStyle)
QPixmap img(size);
if (!size.isEmpty()) {
img.fill(Qt::transparent);
-#ifdef Q_WS_MAC
+/*#ifdef Q_OS_MAC // Fails on CocoaX64
bool oldSmooth = qt_applefontsmoothing_enabled;
qt_applefontsmoothing_enabled = false;
-#endif
+#endif*/
QPainter p(&img);
-#ifdef Q_WS_MAC
+/*#ifdef Q_OS_MAC // Fails on CocoaX64
qt_applefontsmoothing_enabled = oldSmooth;
-#endif
+#endif*/
drawTextLayout(&p, QPointF(-layedOutTextRect.x(),0), drawStyle);
}
return img;
@@ -723,14 +723,14 @@ QPixmap QQuickTextPrivate::textDocumentImage(bool drawStyle)
//paint text
QPixmap img(size);
img.fill(Qt::transparent);
-#ifdef Q_WS_MAC
+/*#ifdef Q_OS_MAC // Fails on CocoaX64
bool oldSmooth = qt_applefontsmoothing_enabled;
qt_applefontsmoothing_enabled = false;
-#endif
+#endif*/
QPainter p(&img);
-#ifdef Q_WS_MAC
+/*#ifdef Q_OS_MAC // Fails on CocoaX64
qt_applefontsmoothing_enabled = oldSmooth;
-#endif
+#endif*/
QAbstractTextDocumentLayout::PaintContext context;
diff --git a/src/declarative/items/qquicktextedit.cpp b/src/declarative/items/qquicktextedit.cpp
index 75f60bc08c..f132c70400 100644
--- a/src/declarative/items/qquicktextedit.cpp
+++ b/src/declarative/items/qquicktextedit.cpp
@@ -1490,7 +1490,7 @@ QSGNode *QQuickTextEdit::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *
} else if (oldNode == 0 || d->documentDirty) {
d->documentDirty = false;
-#if defined(Q_WS_MAC)
+#if defined(Q_OS_MAC)
// Make sure document is relayouted in the paint node on Mac
// to avoid crashes due to the font engines created in the
// shaping process
@@ -1519,7 +1519,7 @@ QSGNode *QQuickTextEdit::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *
selectionEnd() - 1); // selectionEnd() returns first char after
// selection
-#if defined(Q_WS_MAC)
+#if defined(Q_OS_MAC)
// We also need to make sure the document layout is redone when
// control is returned to the main thread, as all the font engines
// are now owned by the rendering thread
@@ -1873,9 +1873,7 @@ void QQuickTextEditPrivate::updateDefaultTextOption()
customizing when you want the input keyboard to be shown and hidden in
your application.
- By default the opening of input panels follows the platform style. On Symbian^1 and
- Symbian^3 -based devices the panels are opened by clicking TextEdit. On other platforms
- the panels are automatically opened when TextEdit element gains active focus. Input panels are
+ By default the opening of input panels follows the platform style. Input panels are
always closed if no editor has active focus.
You can disable the automatic behavior by setting the property \c activeFocusOnPress to false
@@ -1918,9 +1916,7 @@ void QQuickTextEdit::openSoftwareInputPanel()
for customizing when you want the input keyboard to be shown and hidden in
your application.
- By default the opening of input panels follows the platform style. On Symbian^1 and
- Symbian^3 -based devices the panels are opened by clicking TextEdit. On other platforms
- the panels are automatically opened when TextEdit element gains active focus. Input panels are
+ By default the opening of input panels follows the platform style. Input panels are
always closed if no editor has active focus.
You can disable the automatic behavior by setting the property \c activeFocusOnPress to false
diff --git a/src/declarative/items/qquicktextinput.cpp b/src/declarative/items/qquicktextinput.cpp
index e28832ed4e..4e260560a1 100644
--- a/src/declarative/items/qquicktextinput.cpp
+++ b/src/declarative/items/qquicktextinput.cpp
@@ -1699,12 +1699,10 @@ void QQuickTextInput::moveCursorSelection(int pos, SelectionMode mode)
customizing when you want the input keyboard to be shown and hidden in
your application.
- By default the opening of input panels follows the platform style. On Symbian^1 and
- Symbian^3 -based devices the panels are opened by clicking TextInput. On other platforms
- the panels are automatically opened when TextInput element gains active focus. Input panels are
+ By default the opening of input panels follows the platform style. Input panels are
always closed if no editor has active focus.
- . You can disable the automatic behavior by setting the property \c activeFocusOnPress to false
+ You can disable the automatic behavior by setting the property \c activeFocusOnPress to false
and use functions openSoftwareInputPanel() and closeSoftwareInputPanel() to implement
the behavior you want.
@@ -1744,12 +1742,10 @@ void QQuickTextInput::openSoftwareInputPanel()
for customizing when you want the input keyboard to be shown and hidden in
your application.
- By default the opening of input panels follows the platform style. On Symbian^1 and
- Symbian^3 -based devices the panels are opened by clicking TextInput. On other platforms
- the panels are automatically opened when TextInput element gains active focus. Input panels are
+ By default the opening of input panels follows the platform style. Input panels are
always closed if no editor has active focus.
- . You can disable the automatic behavior by setting the property \c activeFocusOnPress to false
+ You can disable the automatic behavior by setting the property \c activeFocusOnPress to false
and use functions openSoftwareInputPanel() and closeSoftwareInputPanel() to implement
the behavior you want.
@@ -1826,9 +1822,6 @@ bool QQuickTextInput::isInputMethodComposing() const
void QQuickTextInputPrivate::init()
{
Q_Q(QQuickTextInput);
-#if defined(Q_WS_MAC)
- control->setThreadChecks(true);
-#endif
control->setParent(q);//Now mandatory due to accessibility changes
control->setCursorWidth(1);
control->setPasswordCharacter(QLatin1Char('*'));