Commit 17f0ac4d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add unicode search page

parent dce3718d
Pipeline #80874 canceled with stage
......@@ -30,6 +30,7 @@ EmoticonTextEditSelector::EmoticonTextEditSelector(QWidget *parent)
mainLayout->addWidget(mUnicodeTab);
connect(mUnicodeTab, &EmoticonUnicodeTab::itemSelected, this, &EmoticonTextEditSelector::slotItemSelected);
connect(mSearchUnicodeLineEdit, &QLineEdit::textChanged, this, &EmoticonTextEditSelector::slotSearchUnicode);
}
EmoticonTextEditSelector::~EmoticonTextEditSelector()
......@@ -50,3 +51,8 @@ void EmoticonTextEditSelector::loadEmoticons()
mUnicodeTab->loadEmoticons();
}
}
void EmoticonTextEditSelector::slotSearchUnicode(const QString &str)
{
mUnicodeTab->searchUnicode(str);
}
......@@ -28,6 +28,7 @@ Q_SIGNALS:
private:
void slotItemSelected(const QString &str);
void slotSearchUnicode(const QString &str);
EmoticonUnicodeTab *const mUnicodeTab;
QLineEdit *const mSearchUnicodeLineEdit;
};
......
......@@ -25,6 +25,11 @@ EmoticonUnicodeTab::~EmoticonUnicodeTab()
{
}
void EmoticonUnicodeTab::searchUnicode(const QString &str)
{
// TODO show search page + update proxyfilter + switch to search page
}
void EmoticonUnicodeTab::loadEmoticons()
{
createPlainTextEmoticonTab(i18n("Faces"), EmoticonUnicodeUtils::unicodeFaceEmoji());
......
......@@ -26,6 +26,7 @@ public:
void loadEmoticons();
void searchUnicode(const QString &str);
Q_SIGNALS:
void itemSelected(const QString &);
......
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