~ubuntu-branches/ubuntu/gutsy/kde4libs/gutsy

« back to all changes in this revision

Viewing changes to kdeui/util/ksystemtrayicon.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-02-21 11:00:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070221110012-6kw8khr9knv6lmg1
Tags: 3.80.3-0ubuntu1
New upstream unstable release

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#ifndef KSYSTEMTRAY_H
19
19
#define KSYSTEMTRAY_H
20
20
 
21
 
#include <QSystemTrayIcon>
 
21
#include <QtGui/QSystemTrayIcon>
22
22
 
23
23
#include <kglobal.h>
24
24
 
93
93
    QWidget *parentWidget() const;
94
94
 
95
95
    /**
96
 
     * Loads an icon @p icon using the icon loader class of the given instance @p instance.
 
96
     * Loads an icon @p icon using the icon loader class of the given componentData @p componentData.
97
97
     * The icon is applied the panel effect as it should only be used to be shown in the
98
98
     * system tray.
99
99
     * It's commonly used in the form : systray->setPixmap( systray->loadIcon( "mysystray" ) );
100
100
     */
101
 
    static QIcon loadIcon( const QString &icon, KInstance *instance=KGlobal::instance() );
 
101
    static QIcon loadIcon(const QString &icon, const KComponentData &componentData = KGlobal::mainComponent());
102
102
 
103
103
Q_SIGNALS:
104
104
    /**