Commit 852f8474 authored by Timothy M. Shead's avatar Timothy M. Shead
Browse files

COMP: Eliminate compile-time warnings from dashboard

parent 9edf6d56
......@@ -81,6 +81,11 @@ ADD_LIBRARY(QtTesting
${UI_BUILT_SOURCES}
)
SOURCE_GROUP("Generated" FILES
${MOC_BUILT_SOURCES}
${UI_BUILT_SOURCES}
)
TARGET_LINK_LIBRARIES(QtTesting
vtkIO
vtkRendering
......
......@@ -17,7 +17,7 @@ pqComboBoxEventTranslator::pqComboBoxEventTranslator() :
{
}
bool pqComboBoxEventTranslator::translateEvent(QObject* Object, QEvent* Event, bool& Error)
bool pqComboBoxEventTranslator::translateEvent(QObject* Object, QEvent* Event, bool& /*Error*/)
{
QComboBox* const object = qobject_cast<QComboBox*>(Object);
if(!object)
......@@ -39,6 +39,9 @@ bool pqComboBoxEventTranslator::translateEvent(QObject* Object, QEvent* Event, b
connect(object, SIGNAL(editTextChanged(const QString&)), this, SLOT(onStateChanged(const QString&)));
}
break;
default:
break;
}
return true;
......
......@@ -17,7 +17,7 @@ pqDoubleSpinBoxEventTranslator::pqDoubleSpinBoxEventTranslator() :
{
}
bool pqDoubleSpinBoxEventTranslator::translateEvent(QObject* Object, QEvent* Event, bool& Error)
bool pqDoubleSpinBoxEventTranslator::translateEvent(QObject* Object, QEvent* Event, bool& /*Error*/)
{
QDoubleSpinBox* const object = qobject_cast<QDoubleSpinBox*>(Object);
if(!object)
......@@ -33,6 +33,8 @@ bool pqDoubleSpinBoxEventTranslator::translateEvent(QObject* Object, QEvent* Eve
disconnect(Object, 0, this, 0);
this->CurrentObject = 0;
break;
default:
break;
}
return true;
......
......@@ -18,7 +18,7 @@ pqLineEditEventTranslator::pqLineEditEventTranslator() :
{
}
bool pqLineEditEventTranslator::translateEvent(QObject* Object, QEvent* Event, bool& Error)
bool pqLineEditEventTranslator::translateEvent(QObject* Object, QEvent* Event, bool& /*Error*/)
{
QLineEdit* const object = qobject_cast<QLineEdit*>(Object);
if(!object)
......@@ -38,6 +38,8 @@ bool pqLineEditEventTranslator::translateEvent(QObject* Object, QEvent* Event, b
disconnect(Object, 0, this, 0);
this->CurrentObject = 0;
break;
default:
break;
}
return true;
......
......@@ -22,7 +22,7 @@ pqMenuEventTranslator::~pqMenuEventTranslator()
clearActions();
}
bool pqMenuEventTranslator::translateEvent(QObject* Object, QEvent* Event, bool& Error)
bool pqMenuEventTranslator::translateEvent(QObject* Object, QEvent* Event, bool& /*Error*/)
{
QMenu* const object = qobject_cast<QMenu*>(Object);
if(!object)
......@@ -48,6 +48,8 @@ bool pqMenuEventTranslator::translateEvent(QObject* Object, QEvent* Event, bool&
case QEvent::Leave:
this->clearActions();
break;
default:
break;
}
return true;
......
......@@ -17,7 +17,7 @@ pqSpinBoxEventTranslator::pqSpinBoxEventTranslator() :
{
}
bool pqSpinBoxEventTranslator::translateEvent(QObject* Object, QEvent* Event, bool& Error)
bool pqSpinBoxEventTranslator::translateEvent(QObject* Object, QEvent* Event, bool& /*Error*/)
{
QSpinBox* const object = qobject_cast<QSpinBox*>(Object);
if(!object)
......@@ -33,6 +33,8 @@ bool pqSpinBoxEventTranslator::translateEvent(QObject* Object, QEvent* Event, bo
disconnect(Object, 0, this, 0);
this->CurrentObject = 0;
break;
default:
break;
}
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment