summaryrefslogtreecommitdiff
path: root/src/scripttools/debugging/qscriptdebuggercodeview.cpp
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2019-07-03 14:50:28 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2019-08-23 17:18:10 +0200
commit1de1f080ef4b37576843bd59a8aa3e484c918820 (patch)
treea05b856d19860e5ccd7ee04f68de0bd5ff6f542e /src/scripttools/debugging/qscriptdebuggercodeview.cpp
parent44a9b1ffbbd6ea127a2e8ce22dd5d87ef7474faf (diff)
downloadqtscript-1de1f080ef4b37576843bd59a8aa3e484c918820.tar.gz
Remove usages of deprecated APIs
Replaced: QLayout::setMargin -> QLayout::setContentsMargins Qt::ItemDataRole::TextColorRole -> Qt::ItemDataRole::ForegroundRole Change-Id: I3bae804d593835f1bc96a8c654fcfa77106bc91c Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggercodeview.cpp')
-rw-r--r--src/scripttools/debugging/qscriptdebuggercodeview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggercodeview.cpp b/src/scripttools/debugging/qscriptdebuggercodeview.cpp
index 7a3d8ed..19545b6 100644
--- a/src/scripttools/debugging/qscriptdebuggercodeview.cpp
+++ b/src/scripttools/debugging/qscriptdebuggercodeview.cpp
@@ -79,7 +79,7 @@ QScriptDebuggerCodeView::QScriptDebuggerCodeView(QWidget *parent)
QObject::connect(d->editor, SIGNAL(breakpointEnableRequest(int,bool)),
this, SIGNAL(breakpointEnableRequest(int,bool)));
QVBoxLayout *vbox = new QVBoxLayout(this);
- vbox->setMargin(0);
+ vbox->setContentsMargins(0, 0, 0, 0);
vbox->addWidget(d->editor);
}