summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qlabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/widgets/qlabel.cpp')
-rw-r--r--src/widgets/widgets/qlabel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/widgets/qlabel.cpp b/src/widgets/widgets/qlabel.cpp
index 26dd0e1120..7db7b42ef2 100644
--- a/src/widgets/widgets/qlabel.cpp
+++ b/src/widgets/widgets/qlabel.cpp
@@ -339,7 +339,7 @@ void QLabel::setText(const QString &text)
if (d->text == text)
return;
- QTextControl *oldControl = d->control;
+ QWidgetTextControl *oldControl = d->control;
d->control = 0;
d->clearContents();
@@ -1599,7 +1599,7 @@ void QLabelPrivate::ensureTextControl() const
if (!isTextLabel)
return;
if (!control) {
- control = new QTextControl(const_cast<QLabel *>(q));
+ control = new QWidgetTextControl(const_cast<QLabel *>(q));
control->document()->setUndoRedoEnabled(false);
control->document()->setDefaultFont(q->font());
control->setTextInteractionFlags(textInteractionFlags);