fix: some unuse argument warning

This commit is contained in:
ppphp
2024-03-30 13:53:08 +08:00
committed by wwmayer
parent aa54ba73df
commit c014ab7a4e
4 changed files with 9 additions and 0 deletions

View File

@@ -176,6 +176,7 @@ bool ViewProviderAssembly::canDragObject(App::DocumentObject* obj) const
bool ViewProviderAssembly::setEdit(int ModNum)
{
Q_UNUSED(ModNum);
// Set the part as 'Activated' ie bold in the tree.
Gui::Command::doCommand(Gui::Command::Gui,
"Gui.ActiveDocument.ActiveView.setActiveObject('%s', "
@@ -238,6 +239,7 @@ App::DocumentObject* ViewProviderAssembly::getActivePart() const
bool ViewProviderAssembly::keyPressed(bool pressed, int key)
{
Q_UNUSED(pressed);
if (key == SoKeyboardEvent::ESCAPE) {
if (isInEditMode()) {
@@ -392,6 +394,8 @@ bool ViewProviderAssembly::mouseButtonPressed(int Button,
const SbVec2s& cursorPos,
const Gui::View3DInventorViewer* viewer)
{
Q_UNUSED(cursorPos);
Q_UNUSED(viewer);
// Left Mouse button ****************************************************
if (Button == 1) {
if (pressed) {

View File

@@ -51,5 +51,6 @@ QIcon ViewProviderJointGroup::getIcon() const
// Make the joint group impossible to delete.
bool ViewProviderJointGroup::onDelete(const std::vector<std::string>& subNames)
{
Q_UNUSED(subNames);
return false;
}

View File

@@ -86,6 +86,7 @@ public:
private:
void updateDataAndDrawToPosition(Base::Vector2d onSketchPos) override
{
Q_UNUSED(onSketchPos);
switch (state()) {
case SelectMode::SeekFirst: {
int VtId = getPreselectPoint();

View File

@@ -75,6 +75,9 @@ bool ViewProviderPageExtension::extensionCanDropObjectEx(App::DocumentObject* ob
const char* subname,
const std::vector<std::string>& elements) const
{
Q_UNUSED(owner);
Q_UNUSED(subname);
Q_UNUSED(elements);
//only DrawView objects can live on pages (except special case Template)
if (obj->isDerivedFrom(TechDraw::DrawView::getClassTypeId())) {
return true;