Commit fc347567 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add tooltip

parent 072ebc27
...@@ -39,6 +39,8 @@ QVariant EmoticonUnicodeModel::data(const QModelIndex &index, int role) const ...@@ -39,6 +39,8 @@ QVariant EmoticonUnicodeModel::data(const QModelIndex &index, int role) const
case Identifier: case Identifier:
case Qt::DisplayRole: case Qt::DisplayRole:
return unicodeEmoti.emoticonCode; return unicodeEmoti.emoticonCode;
case Qt::ToolTipRole:
return unicodeEmoti.emoticonName;
} }
return {}; return {};
} }
......
...@@ -47,10 +47,7 @@ void EmoticonUnicodeTab::createSearchTab() ...@@ -47,10 +47,7 @@ void EmoticonUnicodeTab::createSearchTab()
mEmoticonUnicodeProxyModel->setSourceModel(emoticonModel); mEmoticonUnicodeProxyModel->setSourceModel(emoticonModel);
emoticonModel->setEmoticonList(EmoticonUnicodeUtils::unicodeFaceEmoji() + EmoticonUnicodeUtils::unicodeAnimalsEmoji()); emoticonModel->setEmoticonList(EmoticonUnicodeUtils::unicodeFaceEmoji() + EmoticonUnicodeUtils::unicodeAnimalsEmoji());
allEmojisView->setModel(mEmoticonUnicodeProxyModel); allEmojisView->setModel(mEmoticonUnicodeProxyModel);
mSearchTabIndex = addTab(allEmojisView, i18n("full")); mSearchTabIndex = addTab(allEmojisView, i18n("Search"));
// if (!str.isEmpty()) {
// setTabToolTip(index, str);
// }
} }
void EmoticonUnicodeTab::loadEmoticons() void EmoticonUnicodeTab::loadEmoticons()
......
Markdown is supported
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