Suppress unused parameter compiler warnings

This commit is contained in:
Filip Szymański 2017-05-24 21:25:01 +02:00
parent 851eccd4cc
commit 0e1c25426c
4 changed files with 7 additions and 1 deletions

View File

@ -158,6 +158,7 @@ void CasterCuePicker::button_Cancel_Clicked()
//=======Protected=======
void CasterCuePicker::closeEvent(QCloseEvent *event)
{
Q_UNUSED(event);
player->stop();
button_Preview->setText("Preview");
}

View File

@ -200,6 +200,7 @@ void CasterLabelColorPicker::set_slider_L_Value(int L_Value)
//SLOTS
void CasterLabelColorPicker::slider_HSL_valueChanged(int value)
{
Q_UNUSED(value);
label_H_Value->setText(QString::number(slider_H->value()));
label_S_Value->setText(QString::number(slider_S->value()).append("%"));
label_L_Value->setText(QString::number(slider_L->value()).append("%"));

View File

@ -93,7 +93,7 @@ CasterOSCServerConfigPicker::CasterOSCServerConfigPicker(QString _inbound_ipv4,
//=======Protected=======
void CasterOSCServerConfigPicker::closeEvent(QCloseEvent *event)
{
Q_UNUSED(event);
}
//======Public Slots======

View File

@ -706,6 +706,7 @@ void CasterPlayerWidget::dropEvent(QDropEvent *event)
msgBox.setDefaultButton(QMessageBox::Close);
msgBox.setModal(true);
int ret = msgBox.exec();
Q_UNUSED(ret);
}
}
}
@ -749,6 +750,7 @@ bool CasterPlayerWidget::openFiles(const QStringList& pathList)
/* When user touches wiget it toggles the player state (Play/Pause/Stop) */
void CasterPlayerWidget::mousePressEvent(QMouseEvent *event)
{
Q_UNUSED(event);
// Toggle play state
// Play/Pause
//CURRENT PLAY STATE TOGGLE LOGIC
@ -773,12 +775,14 @@ void CasterPlayerWidget::mousePressEvent(QMouseEvent *event)
//===========Focus Event===========
void CasterPlayerWidget::mouseMoveEvent(QMouseEvent *event)
{
Q_UNUSED(event);
this->setFocus();
}
//===========Paint Event===========
void CasterPlayerWidget::paintEvent(QPaintEvent *event)
{
Q_UNUSED(event);
//Make widget render it's own style sheet.
QStyleOption opt;
opt.init(this);