Changeset View
Changeset View
Standalone View
Standalone View
app/chat-window.cpp
Show First 20 Lines • Show All 802 Lines • ▼ Show 20 Line(s) | |||||
803 | } | 803 | } | ||
804 | 804 | | |||
805 | void ChatWindow::sendNotificationToUser(ChatWindow::NotificationType type, const QString& errorMsg) | 805 | void ChatWindow::sendNotificationToUser(ChatWindow::NotificationType type, const QString& errorMsg) | ||
806 | { | 806 | { | ||
807 | //The pointer is automatically deleted when the event is closed | 807 | //The pointer is automatically deleted when the event is closed | ||
808 | KNotification *notification; | 808 | KNotification *notification; | ||
809 | 809 | | |||
810 | if (type == SystemInfoMessage) { | 810 | if (type == SystemInfoMessage) { | ||
811 | notification = new KNotification(QLatin1String("telepathyInfo"), this); | 811 | notification = new KNotification(QLatin1String("telepathyInfo")); | ||
812 | } else { | 812 | } else { | ||
813 | notification = new KNotification(QLatin1String("telepathyError"), this); | 813 | notification = new KNotification(QLatin1String("telepathyError")); | ||
814 | } | 814 | } | ||
815 | 815 | | |||
816 | notification->setText(errorMsg); | 816 | notification->setText(errorMsg); | ||
817 | notification->sendEvent(); | 817 | notification->sendEvent(); | ||
818 | } | 818 | } | ||
819 | 819 | | |||
820 | void ChatWindow::setupChatTabSignals(ChatTab *chatTab) | 820 | void ChatWindow::setupChatTabSignals(ChatTab *chatTab) | ||
821 | { | 821 | { | ||
▲ Show 20 Lines • Show All 550 Lines • Show Last 20 Lines |