summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/qdesigner_promotiondialog.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-03 16:40:05 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-05 10:26:08 +0200
commit13f0365a960538693ee4b52f9e02864d08845fae (patch)
treecea2924f8113152ff10bdc126ebe5a0c8d3c4f95 /src/designer/src/lib/shared/qdesigner_promotiondialog.cpp
parentfac0dcbeef6a0c23e780b9751c17883ec9918d6f (diff)
Qt Designer: Introduce nullptr
Apply Fixits by Qt Creator with some amendments. Change-Id: Idc948b1132fbb61c3ae6706b71659e2e8790fbc6 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/designer/src/lib/shared/qdesigner_promotiondialog.cpp')
-rw-r--r--src/designer/src/lib/shared/qdesigner_promotiondialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/designer/src/lib/shared/qdesigner_promotiondialog.cpp b/src/designer/src/lib/shared/qdesigner_promotiondialog.cpp
index 24e10fb70..1467efbe3 100644
--- a/src/designer/src/lib/shared/qdesigner_promotiondialog.cpp
+++ b/src/designer/src/lib/shared/qdesigner_promotiondialog.cpp
@@ -187,14 +187,14 @@ namespace qdesigner_internal {
const QString &promotableWidgetClassName,
QString *promoteTo) :
QDialog(parent),
- m_mode(promotableWidgetClassName.isEmpty() || promoteTo == 0 ? ModeEdit : ModeEditChooseClass),
+ m_mode(promotableWidgetClassName.isEmpty() || promoteTo == nullptr ? ModeEdit : ModeEditChooseClass),
m_promotableWidgetClassName(promotableWidgetClassName),
m_core(core),
m_promoteTo(promoteTo),
m_promotion(core->promotion()),
m_model(new PromotionModel(core)),
m_treeView(new QTreeView),
- m_buttonBox(0),
+ m_buttonBox(nullptr),
m_removeButton(new QPushButton(createIconSet(QString::fromUtf8("minus.png")), QString()))
{
m_buttonBox = createButtonBox();
@@ -352,7 +352,7 @@ namespace qdesigner_internal {
flags = 0;
const QModelIndexList indexes = selected.indexes();
if (indexes.empty())
- return 0;
+ return nullptr;
const PromotionModel::ModelData data = m_model->modelData(indexes.constFirst());
QDesignerWidgetDataBaseItemInterface *dbItem = data.promotedItem;