~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/shortcuthandler.cpp

  • Committer: Adam Reichold
  • Date: 2021-04-18 18:53:43 UTC
  • Revision ID: adam.reichold@t-online.de-20210418185343-g3abd0if37xnla59
Fix enum compatibility handling to support older GCC versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
{
176
176
    if(role == Qt::EditRole && index.column() == 1 && index.row() >= 0 && index.row() < m_actions.count())
177
177
    {
178
 
        const QList< QKeySequence > shortcuts = toShortcuts(value.toString().split(';', SplitBehavior::SkipEmptyParts));
 
178
        const QList< QKeySequence > shortcuts = toShortcuts(value.toString().split(';', SplitBehaviorValues::SkipEmptyParts));
179
179
 
180
180
        if(!shortcuts.isEmpty() || value.toString().isEmpty())
181
181
        {