Skip to content

Commit

Permalink
Renamed varianteditor.{h,cpp} to propertiesview.{h,cpp}
Browse files Browse the repository at this point in the history
To match the rename in the last commit.

The term "VariantEditor" referred to the initial approach of using
QVariant for all properties. Now "PropertiesView" is more appropriate,
since it is a view based on the type-agnostic "Property" hierarchy.
  • Loading branch information
bjorn committed Nov 29, 2024
1 parent bcf4b75 commit 2990619
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/tiled/libtilededitor.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ DynamicLibrary {
"projectpropertiesdialog.ui",
"propertiesdock.cpp",
"propertiesdock.h",
"propertiesview.cpp",
"propertiesview.h",
"propertieswidget.cpp",
"propertieswidget.h",
"propertyeditorwidgets.cpp",
Expand Down Expand Up @@ -546,8 +548,6 @@ DynamicLibrary {
"undodock.h",
"utils.cpp",
"utils.h",
"varianteditor.cpp",
"varianteditor.h",
"variantmapproperty.cpp",
"variantmapproperty.h",
"wangbrush.cpp",
Expand Down
2 changes: 1 addition & 1 deletion src/tiled/projectpropertiesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
#include "mapformat.h"
#include "project.h"
#include "projectdocument.h"
#include "propertiesview.h"
#include "tiled.h"
#include "utils.h"
#include "varianteditor.h"

#include <QFormLayout>
#include <QGroupBox>
Expand Down
2 changes: 1 addition & 1 deletion src/tiled/propertiesdock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

#include "propertiesdock.h"

#include "propertiesview.h"
#include "propertieswidget.h"
#include "varianteditor.h"

#include <QEvent>

Expand Down
6 changes: 3 additions & 3 deletions src/tiled/varianteditor.cpp → src/tiled/propertiesview.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* varianteditor.cpp
* propertiesview.cpp
* Copyright 2024, Thorbjørn Lindeijer <[email protected]>
*
* This file is part of Tiled.
Expand All @@ -18,7 +18,7 @@
* this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "varianteditor.h"
#include "propertiesview.h"

#include "colorbutton.h"
#include "fileedit.h"
Expand Down Expand Up @@ -1433,4 +1433,4 @@ void PropertiesView::updatePropertyActions(const PropertyWidgets &widgets,

} // namespace Tiled

#include "moc_varianteditor.cpp"
#include "moc_propertiesview.cpp"
2 changes: 1 addition & 1 deletion src/tiled/varianteditor.h → src/tiled/propertiesview.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* varianteditor.h
* propertiesview.h
* Copyright 2024, Thorbjørn Lindeijer <[email protected]>
*
* This file is part of Tiled.
Expand Down
2 changes: 1 addition & 1 deletion src/tiled/propertieswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
#include "objectgroup.h"
#include "objecttemplate.h"
#include "preferences.h"
#include "propertiesview.h"
#include "propertyeditorwidgets.h"
#include "tilesetchanges.h"
#include "tilesetdocument.h"
#include "tilesetparametersedit.h"
#include "transformmapobjects.h"
#include "utils.h"
#include "varianteditor.h"
#include "variantmapproperty.h"
#include "wangoverlay.h"

Expand Down
2 changes: 1 addition & 1 deletion src/tiled/propertyeditorwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

#include "propertyeditorwidgets.h"

#include "propertiesview.h"
#include "utils.h"
#include "varianteditor.h"

#include <QGridLayout>
#include <QPainter>
Expand Down
2 changes: 1 addition & 1 deletion src/tiled/propertytypeseditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
#include "preferences.h"
#include "project.h"
#include "projectmanager.h"
#include "propertiesview.h"
#include "propertytypesmodel.h"
#include "savefile.h"
#include "session.h"
#include "utils.h"
#include "varianteditor.h"
#include "variantmapproperty.h"

#include <QCheckBox>
Expand Down
2 changes: 1 addition & 1 deletion src/tiled/variantmapproperty.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

#pragma once

#include "propertiesview.h"
#include "propertytype.h"
#include "varianteditor.h"

#include <QSet>

Expand Down

0 comments on commit 2990619

Please sign in to comment.