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

@ -11,11 +11,15 @@ ActionsShortcutsModel::ActionsShortcutsModel(QObject *parent) :
int ActionsShortcutsModel::rowCount(const QModelIndex &parent) const
{
Q_UNUSED(parent);
return actions.length();
}
int ActionsShortcutsModel::columnCount(const QModelIndex &parent) const
{
Q_UNUSED(parent);
return 3;
}
@ -78,6 +82,8 @@ QVariant ActionsShortcutsModel::data(const QModelIndex &index, int role) const
bool ActionsShortcutsModel::setData(const QModelIndex &index, const QVariant &value, int role)
{
Q_UNUSED(role);
if(index.column() == KEYS)
{
ShortcutsManager sm = ShortcutsManager::getShortcutsManager();
@ -95,6 +101,8 @@ bool ActionsShortcutsModel::setData(const QModelIndex &index, const QVariant &va
QModelIndex ActionsShortcutsModel::parent(const QModelIndex &index) const
{
Q_UNUSED(index);
return QModelIndex();
}