diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-05-10 03:03:22 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-05-10 03:03:22 +0000 |
commit | be5389144b23dad9f4b131118e158138fdd027b5 (patch) | |
tree | ad36206f759598dc895f97390f474372411b15dc /kdeui/ksystemtray.h | |
parent | 139dd5b8c4fad3d61f9f7a1776c3c7b6ab77e239 (diff) | |
download | tdelibs-be5389144b23dad9f4b131118e158138fdd027b5.tar.gz tdelibs-be5389144b23dad9f4b131118e158138fdd027b5.zip |
Part of batch commit to enable true tasktray resize support for Trinity applications
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1124756 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/ksystemtray.h')
-rw-r--r-- | kdeui/ksystemtray.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/kdeui/ksystemtray.h b/kdeui/ksystemtray.h index 04dce718a..b0dab69b6 100644 --- a/kdeui/ksystemtray.h +++ b/kdeui/ksystemtray.h @@ -108,7 +108,7 @@ public: * configuration dialog). The default value is KAboutData::programName(). */ virtual void setCaption( const QString& title ); - + /** * Loads an icon @p icon using the icon loader class of the given instance @p instance. * The icon is applied the panel effect as it should only be used to be shown in the @@ -119,6 +119,17 @@ public: */ static QPixmap loadIcon( const QString &icon, KInstance *instance=KGlobal::instance() ); + /** + * Loads an icon @p icon using the icon loader class of the given instance @p instance. + * The icon is applied the panel effect as it should only be used to be shown in the + * system tray. + * It's commonly used in the form : systray->setPixmap( systray->loadIcon( "mysystray", iconWidth ) ); + * This is essentially the same as loadIcon(), but with a forced icon size + * + * @since 3.5.12 + */ + static QPixmap loadSizedIcon( const QString &icon, int iconWidth, KInstance *instance=KGlobal::instance() ); + signals: /** * Emitted when quit is selected in the menu. If you want to perform any other |