This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/101282/

kdialog/kdialog.cpp (Diff revision 1)
static int directCommand(KCmdLineArgs *args)
366
	KCmdLineArgs *qtargs = KCmdLineArgs::parsedArgs("qt"); // --icon is a qt option
--icon is a KDE option.
Maybe that's why the first diff did not work?

kdialog/kdialog.cpp (Diff revision 5)
bool sendVisualNotification(QString text, QString title, int timeout)
99
bool sendVisualNotification(QString text, QString title, int timeout)
101
bool sendVisualNotification(QString text, const QString &title, const QString &icon, int duration)
s/duration/timeout
There's no need to change this name here and you change it backwards some lines below. KDialog's usage text names this option "timeout" as well.

- David


On May 6th, 2011, 2:52 p.m., Kai Uwe Broulik wrote:

Review request for KDE Base Apps.
By Kai Uwe Broulik.

Updated May 6, 2011, 2:52 p.m.

Description

Since I use kdialog a lot, I wanted it to be able to set an icon for passive Plasma notifications as well.
I saw that the icon was hardcoded to dialog-information and tried to enable it to parse the --icon command line argument and pass it to the dbus call that triggers the notification.
I could not test the patch however, since I do not (yet) have a full development environment or its dependencies, and I do not even know if this is the right approach, but I hope you can have a look at it.

Diffs

  • kdialog/kdialog.cpp (b80ad9a)

View Diff