Commit 1ceb831d authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

De-inline definition of AbstractKeyListModel::index

parent 0cd83de4
......@@ -113,6 +113,11 @@ std::vector<Key> AbstractKeyListModel::keys(const QList<QModelIndex> &indexes) c
return result;
}
QModelIndex AbstractKeyListModel::index(const Key &key) const
{
return index(key, 0);
}
QModelIndex AbstractKeyListModel::index(const Key &key, int col) const
{
if (key.isNull() || col < 0 || col >= NumColumns) {
......
......@@ -41,10 +41,7 @@ public:
std::vector<GpgME::Key> keys(const QList<QModelIndex> &indexes) const override;
using QAbstractItemModel::index;
QModelIndex index(const GpgME::Key &key) const override
{
return index(key, 0);
}
QModelIndex index(const GpgME::Key &key) const override;
QModelIndex index(const GpgME::Key &key, int col) const;
QList<QModelIndex> indexes(const std::vector<GpgME::Key> &keys) const override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment