Skip to content

Commit

Permalink
Re #10576. Fix compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Apr 9, 2015
1 parent 1fe7f70 commit f689622
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -100,7 +100,7 @@ void LocalParameterEditor::unfixAll()
}

/// Filter events in the line editor to emulate a shortcut (F to fix/unfix).
bool LocalParameterEditor::eventFilter(QObject *widget, QEvent *evn)
bool LocalParameterEditor::eventFilter(QObject *, QEvent *evn)
{
if ( evn->type() == QEvent::KeyPress )
{
Expand Down
Expand Up @@ -20,7 +20,7 @@ LocalParameterItemDelegate::LocalParameterItemDelegate(EditLocalParameterDialog
}

/// Create a custom editor LocalParameterEditor.
QWidget* LocalParameterItemDelegate::createEditor(QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index) const
QWidget* LocalParameterItemDelegate::createEditor(QWidget * parent, const QStyleOptionViewItem &, const QModelIndex & index) const
{
m_currentEditor = new LocalParameterEditor(parent,index.row(), owner()->isFixed(index.row()));
connect(m_currentEditor,SIGNAL(setAllValues(double)),this,SIGNAL(setAllValues(double)));
Expand Down Expand Up @@ -75,7 +75,7 @@ void LocalParameterItemDelegate::paint(QPainter * painter, const QStyleOptionVie
fWidth = option.fontMetrics.width(fixedStr);
}

double dHeight = (option.rect.height() - option.fontMetrics.height()) / 2;
auto dHeight = (option.rect.height() - option.fontMetrics.height()) / 2;
rect.adjust(rect.width() - fWidth, dHeight, 0 ,-dHeight);
painter->drawText(rect,fixedStr);
}
Expand Down

0 comments on commit f689622

Please sign in to comment.