Spreadsheet: Display a detailed view of a cell error on hover

With this, Spreadsheet can now show an almost full stack trace for the
error (which is infintely better than just the error message).
This commit is contained in:
Ali Mohammad Pur 2022-06-26 00:12:23 +04:30 committed by Linus Groh
commit db4a5aafc8
Notes: sideshowbarker 2024-07-17 22:55:25 +09:00
6 changed files with 62 additions and 1 deletions

View file

@ -13,6 +13,11 @@ namespace Spreadsheet {
class SheetModel final : public GUI::Model {
public:
enum class Role : UnderlyingType<GUI::ModelRole> {
_Custom = to_underlying(GUI::ModelRole::Custom),
Tooltip,
};
static NonnullRefPtr<SheetModel> create(Sheet& sheet) { return adopt_ref(*new SheetModel(sheet)); }
virtual ~SheetModel() override = default;