]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiIdListModel.cpp
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiIdListModel.cpp
index 5780cecc8f740665528b877c68ac636c87c124e5..d38a087f7c37a4ec82357244f540c77613cef642 100644 (file)
@@ -63,6 +63,13 @@ bool GuiIdListModel::setData(QModelIndex const & index,
                dataChanged(index, index);
                return true;
        }
+       if (role == Qt::DecorationRole)
+               // nothing to do
+               return true;
+       if (role == Qt::UserRole - 1)
+               // This role is set by Qt <= 5.5 if setEditable()
+               // of the item is false
+               return true;
        // If we assert here, it's because we're trying to set an
        // unrecognized role.
        LATTEST(false);