KDEUI
ksystemtrayicon.cpp
Go to the documentation of this file.
380 // can never be null, and is always the requsted type, so no need to do null checks after casts.
381 QToolButton *button = static_cast<QToolButton*>((static_cast<QWidgetAction*>(d->titleAction))->defaultWidget());
387 QToolButton *button = static_cast<QToolButton*>((static_cast<QWidgetAction*>(d->titleAction))->defaultWidget());
QWidget * parentWidget() const
Returns the QWidget set by the constructor.
Definition: ksystemtrayicon.cpp:175
QString caption()
QString i18n(const char *text)
indicates that a window should on top of most windows (but below fullscreen windows).
Definition: netwm_def.h:462
Definition: netwm_def.h:394
Definition: kmessagebox.h:74
NET::WindowType windowType(int supported_types) const
Returns the window type of this window (see NET::WindowType).
Definition: kwindowinfo_mac.cpp:208
Definition: netwm_def.h:386
static KIconLoader * global()
Returns the global icon loader initialized with the global KComponentData.
Definition: netwm_def.h:393
Definition: kstandardaction.h:130
Definition: netwm_def.h:642
static KWindowInfo windowInfo(WId win, unsigned long properties, unsigned long properties2=0)
Returns information about window win.
Definition: kwindowsystem_mac.cpp:330
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
static QIcon loadIcon(const QString &icon, const KComponentData &componentData=KGlobal::mainComponent())
Loads an icon icon using the icon loader class of the given componentData componentData.
Definition: ksystemtrayicon.cpp:359
Defines platform-independent classes for keyboard shortcut handling.
KActionCollection * actionCollection()
Easy access to the actions in the context menu Currently includes KStandardAction::Quit and minimizeR...
Definition: ksystemtrayicon.cpp:354
Definition: netwm_def.h:385
bool hasState(unsigned long s) const
Returns true if the window has the given state flag set (see the NET::State enum for details)...
Definition: kwindowinfo_mac.cpp:178
static void forceActiveWindow(WId win, long time=0)
Sets window win to be the active window.
Definition: kwindowsystem_mac.cpp:366
void ref()
bool isMinimized() const
Returns true if the window is minimized.
Definition: kwindowinfo_mac.cpp:183
Definition: netwm_def.h:390
bool onAllDesktops() const
Returns true if the window is on all desktops (equal to desktop()==NET::OnAllDesktops).
Definition: kwindowinfo_mac.cpp:266
static void activateWindow(WId win, long time=0)
Requests that window win is activated.
Definition: kwindowsystem_mac.cpp:355
NET::MappingState mappingState() const
Returns the mapping state of the window (see NET::MappingState).
Definition: kwindowinfo_mac.cpp:197
QPixmap loadIcon(const QString &name, KIconLoader::Group group, int size=0, int state=KIconLoader::DefaultState, const QStringList &overlays=QStringList(), QString *path_store=0L, bool canReturnNull=false) const
Loads an icon.
Definition: kiconloader.cpp:1100
const KSharedConfig::Ptr & config() const
void deref()
Definition: netwm_def.h:388
static void setCurrentDesktop(int desktop)
Convenience function to set the current desktop to desktop.
Definition: kwindowsystem_mac.cpp:394
void setContextMenuTitle(QAction *action)
Sets the context menu title action to action.
Definition: ksystemtrayicon.cpp:378
Definition: netwm_def.h:634
QRect geometry() const
Returns the position and size of the window contents.
Definition: kwindowinfo_mac.cpp:276
static void setOnAllDesktops(WId win, bool b)
Sets window win to be present on all virtual desktops if is true.
Definition: kwindowsystem_mac.cpp:400
Definition: netwm_def.h:387
QAction * contextMenuTitle() const
Returns the context menu title action.
Definition: ksystemtrayicon.cpp:385
const KComponentData & mainComponent()
Definition: netwm_def.h:391
Definition: netwm_def.h:392
KAction * quit(const QObject *recvr, const char *slot, QObject *parent)
Quit the program.
Definition: kstandardaction.cpp:279
int desktop() const
Returns the virtual desktop this window is on (NET::OnAllDesktops if the window is on all desktops)...
Definition: kwindowinfo_mac.cpp:271
Definition: netwm_def.h:389
static QList< WId > stackingOrder()
Returns the list of all toplevel windows currently managed by the window manager in the current stack...
Definition: kwindowsystem_mac.cpp:340
Definition: netwm_def.h:633
T readEntry(const QString &key, const T &aDefault) const
static int warningContinueCancel(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonContinue=KStandardGuiItem::cont(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Notify)
Display a "warning" dialog.
Definition: kmessagebox.cpp:644
Definition: netwm_def.h:635
bool parentWidgetTrayClose() const
Function to be used from function handling closing of the window associated with the tray icon (i...
Definition: ksystemtrayicon.cpp:371
Definition: netwm_def.h:648
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.