Remove unused code into GUI
This commit is contained in:
@@ -45,12 +45,6 @@ using namespace std;
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
|
||||
/* TRANSLATOR Gui::Dialog::DlgDisplayPropertiesImp */
|
||||
|
||||
#if 0 // needed for Qt's lupdate utility
|
||||
qApp->translate("QDockWidget", "Display properties");
|
||||
#endif
|
||||
|
||||
class DlgDisplayPropertiesImp::Private
|
||||
{
|
||||
typedef boost::signals2::connection DlgDisplayPropertiesImp_Connection;
|
||||
@@ -513,7 +507,6 @@ void DlgDisplayPropertiesImp::setShapeColor(const std::vector<Gui::ViewProvider*
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
d->ui.buttonColor->setEnabled(shapeColor);
|
||||
}
|
||||
|
||||
@@ -533,7 +526,6 @@ void DlgDisplayPropertiesImp::setLineColor(const std::vector<Gui::ViewProvider*>
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
d->ui.buttonLineColor->setEnabled(shapeColor);
|
||||
}
|
||||
|
||||
@@ -550,7 +542,6 @@ void DlgDisplayPropertiesImp::setPointSize(const std::vector<Gui::ViewProvider*>
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
d->ui.spinPointSize->setEnabled(pointSize);
|
||||
}
|
||||
|
||||
@@ -567,7 +558,6 @@ void DlgDisplayPropertiesImp::setLineWidth(const std::vector<Gui::ViewProvider*>
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
d->ui.spinLineWidth->setEnabled(lineWidth);
|
||||
}
|
||||
|
||||
@@ -588,7 +578,6 @@ void DlgDisplayPropertiesImp::setTransparency(const std::vector<Gui::ViewProvide
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
d->ui.spinTransparency->setEnabled(transparency);
|
||||
d->ui.horizontalSlider->setEnabled(transparency);
|
||||
}
|
||||
@@ -610,7 +599,6 @@ void DlgDisplayPropertiesImp::setLineTransparency(const std::vector<Gui::ViewPro
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
d->ui.spinLineTransparency->setEnabled(transparency);
|
||||
d->ui.sliderLineTransparency->setEnabled(transparency);
|
||||
}
|
||||
@@ -625,7 +613,6 @@ std::vector<Gui::ViewProvider*> DlgDisplayPropertiesImp::getSelection() const
|
||||
Gui::ViewProvider* view = Application::Instance->getDocument(it->pDoc)->getViewProvider(it->pObject);
|
||||
views.push_back(view);
|
||||
}
|
||||
|
||||
return views;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user