1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

LibGUI: Show font weight names instead of numeric weights in FontPicker

Map font weights to their names from the OpenType specification.
This commit is contained in:
Andreas Kling 2020-12-31 01:12:16 +01:00
parent 28bad49ed4
commit 4f1db41a6c
2 changed files with 53 additions and 4 deletions

View file

@ -33,7 +33,7 @@
namespace GUI {
template<typename T>
class ItemListModel final : public Model {
class ItemListModel : public Model {
public:
static NonnullRefPtr<ItemListModel> create(const Vector<T>& data) { return adopt(*new ItemListModel<T>(data)); }
@ -69,7 +69,7 @@ public:
did_update();
}
private:
protected:
explicit ItemListModel(const Vector<T>& data)
: m_data(data)
{