This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[KNotification] method sendEvent() is not called.

Tags: None
(comma "," separated)
Ruu
Registered Member
Posts
1
Karma
0
OS
Hello.
I have a problem.
I need to add to popup notify a few buttons to push on to be performed some action.
Having studied the docks, I realized, that I needed the following methods:
setActions(), setWidget(), sendEvent();
However, upon the occurrence of a particular action, the method sendEvent() does not cause notify into standart KDE "recent notifications".
Or is there another way to add the button to popup notification.
Can you, please, tell me what's wrong.
Code: Select all
KNotification* knotify = new KNotification("conflict");

notification->setText("handling conflicts");
notification->setPixmap(trayIcon->icon().pixmap(64,64));
notification->setActions(QStringList(i18nc("@action:button", "Resume")));
notification->setWidget(button);
notification->sendEvent();
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I would suggest asking on the kde-devel@kde.org mailing list about this.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]