From bc7cf9ef39d82da70af62e1433d5de2e2a7d45f7 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Fri, 22 Jan 2021 20:07:23 -0500 Subject: Get category switching working --- src/emoji/EmojiModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/emoji/EmojiModel.cpp') diff --git a/src/emoji/EmojiModel.cpp b/src/emoji/EmojiModel.cpp index 85c2dd34..f207c740 100644 --- a/src/emoji/EmojiModel.cpp +++ b/src/emoji/EmojiModel.cpp @@ -63,14 +63,14 @@ EmojiProxyModel::EmojiProxyModel(QObject *parent) EmojiProxyModel::~EmojiProxyModel() {} -EmojiCategory +Emoji::Category EmojiProxyModel::category() const { return category_; } void -EmojiProxyModel::setCategory(EmojiCategory cat) +EmojiProxyModel::setCategory(Emoji::Category cat) { if (category_ == cat) { return; @@ -106,7 +106,7 @@ EmojiProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent const Emoji emoji = index.data(static_cast(EmojiModel::Roles::Emoji)).value(); // TODO: Add favorites / recently used - if (category_ != EmojiCategory::Search) { + if (category_ != Emoji::Category::Search) { return emoji.category == category_; } -- cgit 1.5.1