20 |
20 |
21 QVariant KeyboardShortcutsEditor::data( |
21 QVariant KeyboardShortcutsEditor::data( |
22 const QModelIndex& index, |
22 const QModelIndex& index, |
23 int role) const |
23 int role) const |
24 { |
24 { |
25 QAction* const action = this->actions[index.row()]; |
25 QAction* const action = this->actions[static_cast<std::size_t>(index.row())]; |
26 const Column column = static_cast<Column>(index.column()); |
26 const Column column = static_cast<Column>(index.column()); |
27 switch(role) |
27 switch(role) |
28 { |
28 { |
29 case Qt::DisplayRole: |
29 case Qt::DisplayRole: |
30 switch (column) { |
30 switch (column) { |