diff options
Diffstat (limited to 'src/designer/src/components/taskmenu/listwidgeteditor.cpp')
-rw-r--r-- | src/designer/src/components/taskmenu/listwidgeteditor.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/designer/src/components/taskmenu/listwidgeteditor.cpp b/src/designer/src/components/taskmenu/listwidgeteditor.cpp index 337f9ea46..098dac2cd 100644 --- a/src/designer/src/components/taskmenu/listwidgeteditor.cpp +++ b/src/designer/src/components/taskmenu/listwidgeteditor.cpp @@ -51,7 +51,7 @@ ListWidgetEditor::ListWidgetEditor(QDesignerFormWindowInterface *form, connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept); connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); - m_itemsEditor = new ItemListEditor(form, 0); + m_itemsEditor = new ItemListEditor(form, nullptr); m_itemsEditor->layout()->setContentsMargins(QMargins()); m_itemsEditor->setNewItemText(tr("New Item")); @@ -74,13 +74,13 @@ static AbstractItemEditor::PropertyDefinition listBoxPropList[] = { { Qt::ToolTipPropertyRole, 0, DesignerPropertyManager::designerStringTypeId, "toolTip" }, { Qt::StatusTipPropertyRole, 0, DesignerPropertyManager::designerStringTypeId, "statusTip" }, { Qt::WhatsThisPropertyRole, 0, DesignerPropertyManager::designerStringTypeId, "whatsThis" }, - { Qt::FontRole, QVariant::Font, 0, "font" }, + { Qt::FontRole, QVariant::Font, nullptr, "font" }, { Qt::TextAlignmentRole, 0, DesignerPropertyManager::designerAlignmentTypeId, "textAlignment" }, - { Qt::BackgroundRole, QVariant::Brush, 0, "background" }, - { Qt::ForegroundRole, QVariant::Brush, 0, "foreground" }, + { Qt::BackgroundRole, QVariant::Brush, nullptr, "background" }, + { Qt::ForegroundRole, QVariant::Brush, nullptr, "foreground" }, { ItemFlagsShadowRole, 0, QtVariantPropertyManager::flagTypeId, "flags" }, { Qt::CheckStateRole, 0, QtVariantPropertyManager::enumTypeId, "checkState" }, - { 0, 0, 0, 0 } + { 0, 0, nullptr, nullptr } }; ListContents ListWidgetEditor::fillContentsFromListWidget(QListWidget *listWidget) @@ -99,7 +99,7 @@ ListContents ListWidgetEditor::fillContentsFromListWidget(QListWidget *listWidge static AbstractItemEditor::PropertyDefinition comboBoxPropList[] = { { Qt::DisplayPropertyRole, 0, DesignerPropertyManager::designerStringTypeId, "text" }, { Qt::DecorationPropertyRole, 0, DesignerPropertyManager::designerIconTypeId, "icon" }, - { 0, 0, 0, 0 } + { 0, 0, nullptr, nullptr } }; ListContents ListWidgetEditor::fillContentsFromComboBox(QComboBox *comboBox) |