summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijay Krishnavanshi <[email protected]>2017-07-23 20:03:27 +0530
committerPali Roh├ír <[email protected]>2017-12-22 09:10:30 +0100
commit7df465ba39fcc8cbaaf09b02d8bfb6595c59e8e2 (patch)
tree5a8baf874c2b8b11f911cf933a104e21a355d37d
parentaee0773dfd4f2275625b7e216082fd49473a0d03 (diff)
changed implemetation of libkopete info event class
-rw-r--r--libkopete/kopeteinfoevent.cpp28
1 files changed, 20 insertions, 8 deletions
diff --git a/libkopete/kopeteinfoevent.cpp b/libkopete/kopeteinfoevent.cpp
index 77cd303..7cbc022 100644
--- a/libkopete/kopeteinfoevent.cpp
+++ b/libkopete/kopeteinfoevent.cpp
@@ -60,8 +60,11 @@ QString InfoEvent::title() const
void InfoEvent::setTitle(const QString &title)
{
- d->title = title;
- emit changed();
+ if(d->title != title)
+ {
+ d->title = title;
+ emit changed();
+ }
}
QString InfoEvent::text() const
@@ -71,8 +74,11 @@ QString InfoEvent::text() const
void InfoEvent::setText(const QString &text)
{
- d->text = text;
- emit changed();
+ if(d->text != text)
+ {
+ d->text = text;
+ emit changed();
+ }
}
QString InfoEvent::additionalText() const
@@ -82,8 +88,11 @@ QString InfoEvent::additionalText() const
void InfoEvent::setAdditionalText(const QString &text)
{
- d->additionalText = text;
- emit changed();
+ if(d->additionalText != text)
+ {
+ d->additionalText = text;
+ emit changed();
+ }
}
QMap<uint, QString> InfoEvent::actions() const
@@ -93,8 +102,11 @@ QMap<uint, QString> InfoEvent::actions() const
void InfoEvent::addAction(uint actionId, const QString &actionText)
{
- d->actions[actionId] = actionText;
- emit changed();
+ if(d->actions[actionId] != actionText)
+ {
+ d->actions[actionId] = actionText;
+ emit changed();
+ }
}
bool InfoEvent::showOnSend() const