diff options
Diffstat (limited to 'src/designer/src/lib/shared/qdesigner_promotiondialog.cpp')
-rw-r--r-- | src/designer/src/lib/shared/qdesigner_promotiondialog.cpp | 6 |
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; |