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
void setText(const QString &text)
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
Type type() const
Definition: kmessagebox.h:74
void setContextMenu(QMenu *menu)
NET::WindowType windowType(int supported_types) const
Returns the window type of this window (see NET::WindowType).
Definition: kwindowinfo_mac.cpp:210
Definition: netwm_def.h:386
static KIconLoader * global()
Returns the global icon loader initialized with the global KComponentData.
Definition: netwm_def.h:393
void setDefaultAction(QAction *action)
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
bool intersects(const QRect &rectangle) const
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:180
static void forceActiveWindow(WId win, long time=0)
Sets window win to be the active window.
Definition: kwindowsystem_mac.cpp:366
void ref()
geometry
bool isMinimized() const
Returns true if the window is minimized.
Definition: kwindowinfo_mac.cpp:185
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:268
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:199
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()
void installEventFilter(QObject *filterObj)
Definition: netwm_def.h:388
void raise()
void move(int x, int y)
virtual bool eventFilter(QObject *watched, QEvent *event)
WId winId() const
void hide()
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
void setParent(QObject *parent)
QRect geometry() const
Returns the position and size of the window contents.
Definition: kwindowinfo_mac.cpp:278
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
void activated(QSystemTrayIcon::ActivationReason reason)
QPoint topLeft() const
const KComponentData & mainComponent()
Definition: netwm_def.h:391
Definition: netwm_def.h:392
void show()
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:273
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
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
QAction * defaultAction() const
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
QFuture< T > mapped(const Sequence &sequence, MapFunction function)
Definition: netwm_def.h:648
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.