summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qlinecontrol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/text/qlinecontrol.cpp')
-rw-r--r--src/gui/text/qlinecontrol.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/text/qlinecontrol.cpp b/src/gui/text/qlinecontrol.cpp
index 4d5912fa01..36c064ee40 100644
--- a/src/gui/text/qlinecontrol.cpp
+++ b/src/gui/text/qlinecontrol.cpp
@@ -660,7 +660,9 @@ void QLineControl::internalSetText(const QString &txt, int pos, bool edited)
m_cursor = (pos < 0 || pos > m_text.length()) ? m_text.length() : pos;
m_textDirty = (oldText != m_text);
-#ifndef QT_NO_ACCESSIBILITY
+#ifdef QT_NO_ACCESSIBILITY
+ Q_UNUSED(edited)
+#else
bool changed = finishChange(-1, true, edited);
if (changed)
QAccessible::updateAccessibility(parent(), 0, QAccessible::TextUpdated);