Skip to content
Snippets Groups Projects
Commit 00933861 authored by Matthias Puchner's avatar Matthias Puchner
Browse files

fix compiler warnings

parent 3f0732d3
No related branches found
No related tags found
1 merge request!414Integrate layer oriented sample editor into SampleView
Pipeline #47565 canceled
......@@ -54,7 +54,6 @@ QWidget* createSpinBox(QWidget* parentWidget, const UIntDescriptor& d, SampleEdi
FormLayouter::FormLayouter(QWidget* parent, SampleEditorController* ec) : m_ec(ec)
{
if (parent->layout() != nullptr) {
QLayout* l = parent->layout();
m_formLayout = dynamic_cast<QFormLayout*>(parent->layout());
if (m_formLayout == nullptr) {
auto* collapser =
......
......@@ -25,12 +25,12 @@
LayerOrientedSampleEditor::LayerOrientedSampleEditor(QWidget* parent)
: QWidget(parent)
, m_currentMultiLayerWidget(nullptr)
, m_undoAction(nullptr)
, m_redoAction(nullptr)
, m_showInlineEditButtonsAction(nullptr)
, m_asAngstrom(nullptr)
, m_asRad(nullptr)
, m_currentMultiLayerWidget(nullptr)
, m_currentMultiLayerItem(nullptr)
{
setAttribute(Qt::WA_StyledBackground, true);
......
......@@ -51,7 +51,6 @@ private:
QAction* m_showInlineEditButtonsAction;
QAction* m_asAngstrom; // #baLayerEditor better two autoexclusive actions?
QAction* m_asRad; // #baLayerEditor better two autoexclusive actions?
MultiLayerItem* m_currentMultiLayerItem = nullptr;
QMap<MultiLayerItem*, SampleEditorController*> m_editControllers;
};
......
......@@ -187,7 +187,7 @@ void MultiLayerForm::updateRowVisibilities()
c->updateLayerPositionDependentElements();
}
void MultiLayerForm::ensureVisible(QWidget* w)
void MultiLayerForm::ensureVisible(QWidget* /*w*/)
{
// #baLayerEditor implement ensureVisible
}
......
......@@ -245,7 +245,7 @@ void SampleEditorController::selectMaterial(ItemWithMaterial* item,
// #baLayerEditor notify all material users (update link info)
}
void SampleEditorController::setMaterialValue(ItemWithMaterial* item, double newValue,
void SampleEditorController::setMaterialValue(ItemWithMaterial* /*item*/, double newValue,
DoubleDescriptor d)
{
setDouble(newValue, d);
......
......@@ -28,7 +28,7 @@ void WidgetMoverButton::mousePressEvent(QMouseEvent* event)
m_mouseDownY = event->globalY();
}
void WidgetMoverButton::mouseReleaseEvent(QMouseEvent* event)
void WidgetMoverButton::mouseReleaseEvent(QMouseEvent*)
{
m_started = false;
if (m_layoutToDeactivate != nullptr) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment