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
case Identifier:
case Qt::DisplayRole:
return unicodeEmoti.emoticonCode;
case Qt::ToolTipRole:
return unicodeEmoti.emoticonName;
}
return {};
}
......
......@@ -47,10 +47,7 @@ void EmoticonUnicodeTab::createSearchTab()
mEmoticonUnicodeProxyModel->setSourceModel(emoticonModel);
emoticonModel->setEmoticonList(EmoticonUnicodeUtils::unicodeFaceEmoji() + EmoticonUnicodeUtils::unicodeAnimalsEmoji());
allEmojisView->setModel(mEmoticonUnicodeProxyModel);
mSearchTabIndex = addTab(allEmojisView, i18n("full"));
// if (!str.isEmpty()) {
// setTabToolTip(index, str);
// }
mSearchTabIndex = addTab(allEmojisView, i18n("Search"));
}
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