[Konversation-devel] [Bug 106482] Show "Chat" link in Konversation
notifications as it's shown in Kopete
ismail cartman donmez
ismail at kde.org.tr
Mon May 30 10:12:47 CEST 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=106482
ismail kde org tr changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From ismail kde org tr 2005-05-30 10:12 -------
SVN commit 419645 by cartman:
Kopete like clickable notifications. Patch by Isaac Clerencia. Might need some polish but good enough for now.
Thanks for the patch!
CCMAIL:isaac sindominio net
BUG:106482
M +2 -2 Makefile.am
M +7 -3 notificationhandler.cpp
A popup.cpp [License: GPL (v2+)]
A popup.h [License: GPL (v2+)]
--- trunk/extragear/network/konversation/src/Makefile.am #419644:419645
@ -43,7 +43,7 @
watchednicknames_preferences.ui generalbehavior_preferences.ui connectionbehavior_preferences.ui \
prefspageconnectionbehavior.cpp fontappearance_preferences.ui prefspagefontsappearance.cpp \
nicklistbehavior_preferences.ui prefspagenicklistbehavior.cpp \
- konvibookmarkhandler.cpp konvibookmarkmenu.cpp
+ konvibookmarkhandler.cpp konvibookmarkmenu.cpp popup.cpp
konversation_LDADD = $(COMPAT_LIBS) $(LIB_KIO) $(LIB_KABC) $(LIB_KIMIFACE) linkaddressbook/liblinkaddressbookui.la
@ -77,5 +77,5 @
dcctransferrecv.h dccdetaildialog.h insertchardialog.h editnotifydialog.h serverison.h \
servergroupsettings.h serversettings.h servergroupdialog.h serverdialog.h channeldialog.h \
identitydialog.h topiclabel.h channeloptionsdialog.h joinchanneldialog.h \
- prefspageconnectionbehavior.h prefspagefontsappearance.h prefspagenicklistbehavior.h
+ prefspageconnectionbehavior.h prefspagefontsappearance.h prefspagenicklistbehavior.h popup.h
--- trunk/extragear/network/konversation/src/notificationhandler.cpp #419644:419645
@ -19,6 +19,7 @
#include "chatwindow.h"
#include "konversationapplication.h"
#include "konversationmainwindow.h"
+#include "popup.h"
#include "trayicon.h"
#include "server.h"
@ -47,9 +48,10 @
QString cleanedMessage = Konversation::removeIrcMarkup(message);
QString cutup = addLineBreaks(cleanedMessage);
+// KNotifyClient::event(winId(), "message", QString("<qt><%1> %2</qt>").arg(fromNick).arg(cutup));
+ Popup *pop = new Popup(m_mainWindow,chatWin,
+ QString("<qt><%2> %3</qt>").arg(chatWin->getName()).arg(fromNick).arg(cutup));
- KNotifyClient::event(winId(), "message", QString("<qt><%1> %2</qt>").arg(fromNick).arg(cutup));
-
if(!KonversationApplication::preferences.trayNotifyOnlyOwnNick()) {
startTrayNotification(chatWin);
}
@ -75,7 +77,9 @
QString cleanedMessage = Konversation::removeIrcMarkup(message);
QString cutup = addLineBreaks(cleanedMessage);
- KNotifyClient::event(winId(), "nick", QString("<qt><%1> %2</qt>").arg(fromNick).arg(cutup));
+// KNotifyClient::event(winId(), "nick", QString("<qt><%1> %2</qt>").arg(fromNick).arg(cutup));
+ Popup *pop = new Popup(m_mainWindow,chatWin,
+ QString("<qt><%2> %3</qt>").arg(chatWin->getName()).arg(fromNick).arg(cutup));
startTrayNotification(chatWin);
More information about the Konversation-devel
mailing list