diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-07-03 14:50:28 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-08-23 17:18:10 +0200 |
commit | 1de1f080ef4b37576843bd59a8aa3e484c918820 (patch) | |
tree | a05b856d19860e5ccd7ee04f68de0bd5ff6f542e /src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp | |
parent | 44a9b1ffbbd6ea127a2e8ce22dd5d87ef7474faf (diff) |
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/qscriptdebuggerconsolewidget.cpp')
-rw-r--r-- | src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp b/src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp index d1cdffc..5cf68b6 100644 --- a/src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp +++ b/src/scripttools/debugging/qscriptdebuggerconsolewidget.cpp @@ -102,7 +102,7 @@ public: inputEdit = new InputEdit(); QHBoxLayout *hbox = new QHBoxLayout(this); hbox->setSpacing(0); - hbox->setMargin(0); + hbox->setContentsMargins(0, 0, 0, 0); hbox->addWidget(promptLabel); hbox->addWidget(inputEdit); @@ -323,7 +323,7 @@ QScriptDebuggerConsoleWidget::QScriptDebuggerConsoleWidget(QWidget *parent) d->outputEdit = new QScriptDebuggerConsoleWidgetOutputEdit(); QVBoxLayout *vbox = new QVBoxLayout(this); vbox->setSpacing(0); - vbox->setMargin(0); + vbox->setContentsMargins(0, 0, 0, 0); vbox->addWidget(d->outputEdit); vbox->addWidget(d->commandLine); |