summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/promotiontaskmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/lib/shared/promotiontaskmenu.cpp')
-rw-r--r--src/designer/src/lib/shared/promotiontaskmenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/designer/src/lib/shared/promotiontaskmenu.cpp b/src/designer/src/lib/shared/promotiontaskmenu.cpp
index 481b944cc..bb5631d32 100644
--- a/src/designer/src/lib/shared/promotiontaskmenu.cpp
+++ b/src/designer/src/lib/shared/promotiontaskmenu.cpp
@@ -248,7 +248,7 @@ void PromotionTaskMenu::slotEditPromoteTo()
Q_ASSERT(QDesignerPromotionDialog::baseClassNames(core->promotion()).contains(base_class_name));
// Show over promotable widget
QString promoteToClassName;
- QDialog *promotionEditor = 0;
+ QDialog *promotionEditor = nullptr;
if (QDesignerLanguageExtension *lang = languageExtension(core))
promotionEditor = lang->createPromotionDialog(core, base_class_name, &promoteToClassName, fw);
if (!promotionEditor)
@@ -311,14 +311,14 @@ QDesignerFormWindowInterface *PromotionTaskMenu::formWindow() const
// for QDesignerMenus also.
QObject *o = m_widget;
QDesignerFormWindowInterface *result = QDesignerFormWindowInterface::findFormWindow(o);
- Q_ASSERT(result != 0);
+ Q_ASSERT(result != nullptr);
return result;
}
void PromotionTaskMenu::editPromotedWidgets(QDesignerFormEditorInterface *core, QWidget* parent) {
QDesignerLanguageExtension *lang = languageExtension(core);
// Show over non-promotable widget
- QDialog *promotionEditor = 0;
+ QDialog *promotionEditor = nullptr;
if (lang)
lang->createPromotionDialog(core, parent);
if (!promotionEditor)