From ed582bbecd631bc866c004dc865916eb8b5ee37b Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Mon, 4 Apr 2022 08:41:16 +0800 Subject: [PATCH] Gui: put private class to anonymous namespace --- src/Gui/propertyeditor/PropertyItem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gui/propertyeditor/PropertyItem.cpp b/src/Gui/propertyeditor/PropertyItem.cpp index 02d541b485..d593204cd7 100644 --- a/src/Gui/propertyeditor/PropertyItem.cpp +++ b/src/Gui/propertyeditor/PropertyItem.cpp @@ -2847,6 +2847,8 @@ void PropertyEnumItem::setValue(const QVariant& value) setPropertyValue(data); } +namespace { + class EnumItems; struct EnumItem { @@ -2875,6 +2877,8 @@ void EnumItem::populate(QMenu *menu) item.populate(subMenu); } +} // anonymous namespace + QWidget* PropertyEnumItem::createEditor(QWidget* parent, const QObject* receiver, const char* method) const { const std::vector& items = getPropertyData();