Skip to content

Commit

Permalink
Replace remaining usage of QSchematic::Item with QSchematic::Items::Item
Browse files Browse the repository at this point in the history
Reported by @bjornstromberg
Fixes #56
  • Loading branch information
Tectu committed Jan 31, 2024
1 parent 52416bc commit 416d973
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demo/library/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const QSchematic::Items::Item* Model::itemFromIndex(const QModelIndex& index) co
return nullptr;
}

// Retrieve the QSchematic::Item
// Retrieve the QSchematic::Items::Item
return itemInfo->item;
}

Expand Down
6 changes: 3 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ junctions that are on the first segment to the second segment.

The `wire_system::wire` class only implements the logic that is related to the
wire. For the graphical stuff, `QSchematic` uses a subclass named
`QSchematic::Wire`. This class also inherits from `QSchematic::Item` and takes
`QSchematic::Wire`. This class also inherits from `QSchematic::Items::Item` and takes
care of rendering the wire and handles the events like when the user drags a
point etc. As the wire has to be redrawn when the points are modified, the
`wire_system::wire` class provides two virtual methods, `about_to_change()` and
Expand Down Expand Up @@ -243,8 +243,8 @@ the manager so that it can make sure the wires stay connected to it.

### Connectors

`QSchematic` uses a subclass of `connectable` called `Connector` that inherits
from `QSchematic::Item` and implements everything that relates to the graphics.
`QSchematic` uses a subclass of `connectable` called `Connector` that inherits
from `QSchematic::Items::Item` and implements everything that relates to the graphics.

## Net

Expand Down
2 changes: 1 addition & 1 deletion qschematic/utils/itemscustodian.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace QSchematic::ItemUtils
*/
~ItemsCustodian()
{
if constexpr (std::is_base_of_v<QSchematic::Item, CustodyItemT>) {
if constexpr (std::is_base_of_v<QSchematic::Items::Item, CustodyItemT>) {
for ( auto const& item : _custody_items )
item->setParentItem(nullptr);
}
Expand Down

0 comments on commit 416d973

Please sign in to comment.