Verified Commit 5f8e051c authored by Eugene Popov's avatar Eugene Popov 🇺🇦 Committed by Fushan Wen
Browse files

Revert "klipper: Add FullTextRole to get untruncated text"

This reverts commit 5c9d8c2e.
parent efdcea70
......@@ -80,8 +80,6 @@ QVariant HistoryModel::data(const QModelIndex &index, int role) const
return item->uuid().toBase64();
case TypeIntRole:
return int(type);
case FullTextRole:
return item->mimeData()->text();
}
return QVariant();
}
......@@ -204,6 +202,5 @@ QHash<int, QByteArray> HistoryModel::roleNames() const
hash.insert(Qt::DecorationRole, QByteArrayLiteral("DecorationRole"));
hash.insert(Base64UuidRole, QByteArrayLiteral("UuidRole"));
hash.insert(TypeIntRole, QByteArrayLiteral("TypeRole"));
hash.insert(FullTextRole, QByteArrayLiteral("FullTextRole"));
return hash;
}
......@@ -26,7 +26,6 @@ public:
TypeRole,
Base64UuidRole,
TypeIntRole,
FullTextRole,
};
Q_ENUM(RoleType)
......
Supports Markdown
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