diff --git a/src/qanGroupItem.cpp b/src/qanGroupItem.cpp index 3d0019ba..b06719b7 100644 --- a/src/qanGroupItem.cpp +++ b/src/qanGroupItem.cpp @@ -131,8 +131,7 @@ bool GroupItem::setDragPolicy(DragPolicy dragPolicy) noexcept } return false; } -GroupItem::DragPolicy GroupItem::getDragPolicy() noexcept { return _dragPolicy; } -const GroupItem::DragPolicy GroupItem::getDragPolicy() const noexcept { return _dragPolicy; } +GroupItem::DragPolicy GroupItem::getDragPolicy() const noexcept { return _dragPolicy; } void GroupItem::groupMoved() { diff --git a/src/qanGroupItem.h b/src/qanGroupItem.h index 3c7f8f42..584ff799 100644 --- a/src/qanGroupItem.h +++ b/src/qanGroupItem.h @@ -137,9 +137,7 @@ class GroupItem : public qan::NodeItem //! \copydoc DragPolicy virtual bool setDragPolicy(DragPolicy dragPolicy) noexcept; //! \copydoc DragPolicy - DragPolicy getDragPolicy() noexcept; - //! \copydoc DragPolicy - const DragPolicy getDragPolicy() const noexcept; + DragPolicy getDragPolicy() const noexcept; protected: //! \copydoc DragPolicy DragPolicy _dragPolicy = DragPolicy::Header; diff --git a/src/qanNavigable.h b/src/qanNavigable.h index e5ad9804..caf8435c 100644 --- a/src/qanNavigable.h +++ b/src/qanNavigable.h @@ -348,9 +348,9 @@ protected slots: protected: //! Called when the mouse is clicked in the container (base implementation empty). - virtual void navigableClicked(QPointF pos, QPointF globalPos) { Q_UNUSED(pos); } + virtual void navigableClicked(QPointF pos, QPointF globalPos) { Q_UNUSED(pos); Q_UNUSED(globalPos); } //! Called when the mouse is right clicked in the container (base implementation empty). - virtual void navigableRightClicked(QPointF pos, QPointF globalPos) { Q_UNUSED(pos); } + virtual void navigableRightClicked(QPointF pos, QPointF globalPos) { Q_UNUSED(pos); Q_UNUSED(globalPos); } //! Called when the container item is scaled (zoomed) or panned (base implementation empty). virtual void navigableContainerItemModified() { } diff --git a/src/qanTreeLayouts.cpp b/src/qanTreeLayouts.cpp index 5c7c23a2..66fff3a1 100644 --- a/src/qanTreeLayouts.cpp +++ b/src/qanTreeLayouts.cpp @@ -209,8 +209,7 @@ bool OrgTreeLayout::setLayoutOrientation(OrgTreeLayout::LayoutOrientation lay } return false; } -OrgTreeLayout::LayoutOrientation OrgTreeLayout::getLayoutOrientation() noexcept { return _layoutOrientation; } -const OrgTreeLayout::LayoutOrientation OrgTreeLayout::getLayoutOrientation() const noexcept { return _layoutOrientation; } +OrgTreeLayout::LayoutOrientation OrgTreeLayout::getLayoutOrientation() const noexcept { return _layoutOrientation; } void OrgTreeLayout::layout(qan::Node& root, qreal xSpacing, qreal ySpacing) noexcept diff --git a/src/qanTreeLayouts.h b/src/qanTreeLayouts.h index bcc447e6..0a57d3d1 100644 --- a/src/qanTreeLayouts.h +++ b/src/qanTreeLayouts.h @@ -162,9 +162,7 @@ class OrgTreeLayout : public QObject //! \copydoc LayoutOrientation bool setLayoutOrientation(LayoutOrientation layoutOrientation) noexcept; //! \copydoc LayoutOrientation - LayoutOrientation getLayoutOrientation() noexcept; - //! \copydoc LayoutOrientation - const LayoutOrientation getLayoutOrientation() const noexcept; + LayoutOrientation getLayoutOrientation() const noexcept; protected: //! \copydoc LayoutOrientation LayoutOrientation _layoutOrientation = LayoutOrientation::Vertical; @@ -195,4 +193,3 @@ class OrgTreeLayout : public QObject } // ::qan QML_DECLARE_TYPE(qan::OrgTreeLayout) -