From 953cece2927fcaf8693033df0969caeff9778169 Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 12 Dec 2022 10:19:54 +0300 Subject: [PATCH] missing include --- widgets/material_map_editor.cpp | 1 + widgets/propertyeditor.cpp | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/widgets/material_map_editor.cpp b/widgets/material_map_editor.cpp index 3768d82..283aa49 100644 --- a/widgets/material_map_editor.cpp +++ b/widgets/material_map_editor.cpp @@ -20,6 +20,7 @@ #include "ui_material_map_editor.h" #include "gltexture_manager.h" #include "glmaterial.h" +#include MaterialMapEditor::MaterialMapEditor(QWidget * parent): QWidget(parent) { diff --git a/widgets/propertyeditor.cpp b/widgets/propertyeditor.cpp index c111199..bdacdee 100644 --- a/widgets/propertyeditor.cpp +++ b/widgets/propertyeditor.cpp @@ -17,13 +17,20 @@ */ #include "propertyeditor.h" +#include "qpointedit.h" +#include "qrectedit.h" +#include "colorbutton.h" +#include "clineedit.h" +#include +#include +#include QWidget * Delegate::widgetForProperty(QWidget * parent, const QModelIndex & index) const { - QWidget * w = 0; + QWidget * w = nullptr; int type = 0; QVariant value = index.data(Qt::UserRole); - if (index.data(Qt::UserRole + 2).toString() == "__flags") return 0; + if (index.data(Qt::UserRole + 2).toString() == "__flags") return nullptr; if (index.data(Qt::UserRole + 1).toString() == "__flag") { qulonglong key = index.data(Qt::UserRole).toULongLong(); value = index.parent().data(Qt::UserRole);