summary refs log tree commit diff
path: root/src/emoji
diff options
context:
space:
mode:
authorJussi Kuokkanen <jussi.kuokkanen@protonmail.com>2020-08-29 00:26:45 +0300
committerJussi Kuokkanen <jussi.kuokkanen@protonmail.com>2020-08-29 00:26:45 +0300
commit9ad9c8ddf07495ac6581edf7ca11463d7c0f78c9 (patch)
tree37259524232c9351381051ebc903aa2e0d056851 /src/emoji
parentlint (diff)
downloadnheko-9ad9c8ddf07495ac6581edf7ca11463d7c0f78c9.tar.xz
fix build and remove commented code
Diffstat (limited to 'src/emoji')
-rw-r--r--src/emoji/EmojiSearchModel.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/emoji/EmojiSearchModel.h b/src/emoji/EmojiSearchModel.h
index 87fa0403..1ff5f4e9 100644
--- a/src/emoji/EmojiSearchModel.h
+++ b/src/emoji/EmojiSearchModel.h
@@ -5,8 +5,6 @@
 #include <QDebug>
 #include <QEvent>
 #include <QSortFilterProxyModel>
-#include <qabstractitemmodel.h>
-#include <qsortfilterproxymodel.h>
 
 namespace emoji {
 
@@ -28,10 +26,7 @@ public:
                 }
                 return QSortFilterProxyModel::data(index, role);
         }
-        /*int rowCount(const QModelIndex &parent) const override {
-        auto row_count = QSortFilterProxyModel::rowCount(parent);
-        return (row_count < 7) ? row_count : 7;
-    }*/
+
 private:
         QString toShortcode(QString shortname) const
         {