fixed compilation warnings in YACReader.pro, at least using vc++ compiler

This commit is contained in:
Luis Ángel San Martín
2016-03-26 09:50:32 +01:00
parent e5a9fbbf3e
commit 20c01cca8c
7 changed files with 25 additions and 4 deletions

View File

@ -9,6 +9,9 @@ EditShortcutItemDelegate::EditShortcutItemDelegate(QObject *parent) :
QWidget *EditShortcutItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(option);
Q_UNUSED(index);
KeySequenceLineEdit * editor = new KeySequenceLineEdit(parent);
connect(editor,SIGNAL(editingFinished()),this,SLOT(closeShortcutEditor()));
return editor;
@ -31,6 +34,8 @@ void EditShortcutItemDelegate::setModelData(QWidget *editor, QAbstractItemModel
void EditShortcutItemDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &mi) const
{
Q_UNUSED(mi);
editor->setGeometry(option.rect);
}