Commit 5ab403da authored by David Faure's avatar David Faure Committed by Laurent Montel
Browse files

EmoticonTextEditItem: avoid emitting dataChanged

hotspot showed that 0.15% of the KMComposerWin constructor is spent
here because setText() emits dataChanged, that's easy to remove.
parent 231c8ff4
Pipeline #31535 canceled with stage
...@@ -10,10 +10,9 @@ ...@@ -10,10 +10,9 @@
using namespace KPIMTextEdit; using namespace KPIMTextEdit;
EmoticonTextEditItem::EmoticonTextEditItem(const QString &emoticonText, QListWidget *parent) EmoticonTextEditItem::EmoticonTextEditItem(const QString &emoticonText, QListWidget *parent)
: QListWidgetItem(parent) : QListWidgetItem(mText, parent)
, mText(emoticonText) , mText(emoticonText)
{ {
setText(mText);
} }
QString EmoticonTextEditItem::text() const QString EmoticonTextEditItem::text() const
......
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