Skip to content

Commit

Permalink
通知插件小调整
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanlangsir committed Mar 24, 2013
1 parent 2ddd422 commit 182f118
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/talkable.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Talkable: public QObject

public:
//kStranger是指你删除了他好友,但是他还保留你为好友的情况
//kSessStranger是指双方都不是好友的情况
//kSessStranger是指双方都不是好友的情况,通常为群成员
enum TalkableType { kStranger, kSessStranger, kContact, kGroup, kCategory };

Talkable(QString id, QString name, TalkableType type) :
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/notifier/notifywidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ NotifyWidget::NotifyWidget(const Notification &notification)
}
else
{
text = notification.sender_name + ": " + notification.content;
text = "<font color=\"blue\">" + notification.sender_name + "</font>: " + notification.content;
}

if (!text.isEmpty())
Expand Down Expand Up @@ -215,7 +215,7 @@ void NotifyWidget::appendMessage(const QString &sender_name, const QString &msg)
}
else
{
ui.ntbText->append(sender_name + ": " + msg);
ui.ntbText->append("<font color=\"blue\">" + sender_name + "</font>: " + msg);
}
layoutWidgets();
close_timer_.start(ms_timeout_);
Expand Down

0 comments on commit 182f118

Please sign in to comment.