Removed unused SetSelected override.
This commit is contained in:
@@ -126,33 +126,6 @@ public:
|
||||
mState &= ~(LC_CAMERA_SELECTION_MASK | LC_CAMERA_FOCUS_MASK);
|
||||
}
|
||||
|
||||
void SetSelected(quint32 Section, bool Selected) override
|
||||
{
|
||||
switch (Section)
|
||||
{
|
||||
case LC_CAMERA_SECTION_POSITION:
|
||||
if (Selected)
|
||||
mState |= LC_CAMERA_POSITION_SELECTED;
|
||||
else
|
||||
mState &= ~(LC_CAMERA_POSITION_SELECTED | LC_CAMERA_POSITION_FOCUSED);
|
||||
break;
|
||||
|
||||
case LC_CAMERA_SECTION_TARGET:
|
||||
if (Selected)
|
||||
mState |= LC_CAMERA_TARGET_SELECTED;
|
||||
else
|
||||
mState &= ~(LC_CAMERA_TARGET_SELECTED | LC_CAMERA_TARGET_FOCUSED);
|
||||
break;
|
||||
|
||||
case LC_CAMERA_SECTION_UPVECTOR:
|
||||
if (Selected)
|
||||
mState |= LC_CAMERA_UPVECTOR_SELECTED;
|
||||
else
|
||||
mState &= ~(LC_CAMERA_UPVECTOR_SELECTED | LC_CAMERA_UPVECTOR_FOCUSED);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
bool IsFocused() const override
|
||||
{
|
||||
return (mState & LC_CAMERA_FOCUS_MASK) != 0;
|
||||
|
||||
+1
-5
@@ -4569,11 +4569,7 @@ void lcModel::RemoveFromSelection(const lcObjectSection& ObjectSection)
|
||||
|
||||
const bool WasSelected = SelectedObject->IsSelected();
|
||||
|
||||
if (SelectedObject->IsFocused(ObjectSection.Section))
|
||||
SelectedObject->SetSelected(ObjectSection.Section, false);
|
||||
else
|
||||
SelectedObject->SetSelected(false);
|
||||
|
||||
SelectedObject->SetSelected(false);
|
||||
|
||||
if (SelectedObject->IsPiece() && WasSelected)
|
||||
{
|
||||
|
||||
@@ -96,16 +96,6 @@ public:
|
||||
mFocusedSection = LC_LIGHT_SECTION_INVALID;
|
||||
}
|
||||
|
||||
void SetSelected(quint32 Section, bool Selected) override
|
||||
{
|
||||
Q_UNUSED(Section);
|
||||
|
||||
mSelected = Selected;
|
||||
|
||||
if (!Selected)
|
||||
mFocusedSection = LC_LIGHT_SECTION_INVALID;
|
||||
}
|
||||
|
||||
bool IsFocused() const override
|
||||
{
|
||||
return mFocusedSection != LC_LIGHT_SECTION_INVALID;
|
||||
|
||||
@@ -90,7 +90,6 @@ public:
|
||||
virtual bool IsSelected() const = 0;
|
||||
virtual bool IsSelected(quint32 Section) const = 0;
|
||||
virtual void SetSelected(bool Selected) = 0;
|
||||
virtual void SetSelected(quint32 Section, bool Selected) = 0;
|
||||
virtual bool IsFocused() const = 0;
|
||||
virtual bool IsFocused(quint32 Section) const = 0;
|
||||
virtual void SetFocused(quint32 Section, bool Focused) = 0;
|
||||
|
||||
@@ -56,16 +56,6 @@ public:
|
||||
mFocusedSection = LC_PIECE_SECTION_INVALID;
|
||||
}
|
||||
|
||||
void SetSelected(quint32 Section, bool Selected) override
|
||||
{
|
||||
Q_UNUSED(Section);
|
||||
|
||||
mSelected = Selected;
|
||||
|
||||
if (!Selected)
|
||||
mFocusedSection = LC_PIECE_SECTION_INVALID;
|
||||
}
|
||||
|
||||
bool IsFocused() const override
|
||||
{
|
||||
return mFocusedSection != LC_PIECE_SECTION_INVALID;
|
||||
|
||||
Reference in New Issue
Block a user