[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Custom KSystemTray
From: "Aaron J. Seigo" <aseigo () olympusproject ! org>
Date: 2003-06-23 22:27:32
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 23 June 2003 03:52, Klaus Petzold wrote:
> I'm trying to write a application which places an entry
> in the system tray. The popup menu should contain
> only item1 and item2. I wrote a class MySysTray which
> inherits KSystemTray. When I place my setup code in the
> constructor of MySysTray the menu contains item1, item2,
> Minimize and Quit.
you can remove the minimizeRestore action by not handing the systemtray a
parent widget (which signifies that it doesn't belong to a window). you can
also muck with the actions directly if you wish.. here's the docu from
ksystemtray.h:
/**
Easy access to the actions in the context menu
Currently includes KStdAction::Quit and minimizeRestore
@since 3.1
*/
KActionCollection* actionCollection();
of course, the KDE UI standards say that the system tray should show/hide the
window if there is one, and should always provide access to Quitting the app.
there are always reasons to create exceptions to the rule, but the guidelines
are generally there for a good reason and all developers are encouraged to
follow them.
http://developer.kde.org/documentation/standards/kde/style/basics/systray.html
- --
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE: The 'K' is for 'kick ass'
http://www.kde.org http://promo.kde.org/3.1/feature_guide.php
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQE+937W1rcusafx20MRAr+7AKCqWKraO1X81IuaGJRkd7fa4e6IPACfbEm0
P4v/SZnrtXJ258RbPsyhgSM=
=buBS
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic