fix: some unuse argument warning
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -86,6 +86,7 @@ public:
|
||||
private:
|
||||
void updateDataAndDrawToPosition(Base::Vector2d onSketchPos) override
|
||||
{
|
||||
Q_UNUSED(onSketchPos);
|
||||
switch (state()) {
|
||||
case SelectMode::SeekFirst: {
|
||||
int VtId = getPreselectPoint();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user