KDEUI
kpassivepopup.cpp
Go to the documentation of this file.
52static const Qt::WindowFlags POPUP_FLAGS = Qt::Tool | Qt::X11BypassWindowManagerHint | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint;
574KPassivePopup *KPassivePopup::message( int popupStyle, const QString &caption, const QString &text,
593KPassivePopup *KPassivePopup::message( int popupStyle, const QString &caption, const QString &text,
599KPassivePopup *KPassivePopup::message( int popupStyle, const QString &caption, const QString &text,
612KPassivePopup *KPassivePopup::message( int popupStyle, const QString &caption, const QString &text,
628KPassivePopup *KPassivePopup::message( int popupStyle, const QString &text, QSystemTrayIcon *parent )
633KPassivePopup *KPassivePopup::message( int popupStyle, const QString &caption, const QString &text,
static int marginHint()
Returns the number of pixels that should be used between a dialog edge and the outermost widget(s) ac...
Definition: kdialog.cpp:427
static QRect desktopGeometry(const QPoint &point)
This function returns the desktop geometry for an application that needs to set the geometry of a wid...
Definition: kglobalsettings.cpp:732
void setStretchFactor(QWidget *widget, int stretch)
Sets the stretch factor of widget to stretch.
Definition: khbox.cpp:103
void setSpacing(int space)
Sets the spacing between the child widgets to space.
Definition: khbox.cpp:98
A dialog-like popup that displays messages without interrupting the user.
Definition: kpassivepopup.h:80
void moveNear(const QRect &target)
Moves the popup to be adjacent to the icon of the specified rectangle.
Definition: kpassivepopup.cpp:376
static KPassivePopup * message(const QString &text, QWidget *parent)
Convenience method that displays popup with the specified message beside the icon of the specified wi...
Definition: kpassivepopup.cpp:538
void setTimeout(int delay)
Sets the delay for the popup is removed automatically.
Definition: kpassivepopup.cpp:240
QPoint calculateNearbyPoint(const QRect &target)
Calculates the position to place the popup near the specified rectangle.
Definition: kpassivepopup.cpp:385
virtual void paintEvent(QPaintEvent *pe)
Overwrite to paint the border when PopupStyle == Balloon.
Definition: kpassivepopup.cpp:438
virtual void hideEvent(QHideEvent *)
Reimplemented to destroy the object when autoDelete() is enabled.
Definition: kpassivepopup.cpp:314
virtual void setAutoDelete(bool autoDelete)
Enables / disables auto-deletion of this widget when the timeout occurs.
Definition: kpassivepopup.cpp:258
KVBox * standardView(const QString &caption, const QString &text, const QPixmap &icon, QWidget *parent=0L)
Returns a widget that is used as standard view if one of the setView() methods taking the QString arg...
Definition: kpassivepopup.cpp:186
KPassivePopup(QWidget *parent=0, Qt::WindowFlags f=0)
Creates a popup for the specified widget.
Definition: kpassivepopup.cpp:86
void setPopupStyle(int popupstyle)
Sets the visual appearance of the popup.
Definition: kpassivepopup.cpp:146
QPoint anchor() const
Returns the position to which this popup is anchored.
Definition: kpassivepopup.cpp:427
virtual void mouseReleaseEvent(QMouseEvent *e)
Reimplemented to detect mouse clicks.
Definition: kpassivepopup.cpp:263
void setView(QWidget *child)
Sets the main view to be the specified widget (which must be a child of the popup).
Definition: kpassivepopup.cpp:164
int currentDesktop(bool ignore_viewport=false) const
Returns the current desktop.
Definition: netwm.cpp:2746
void activate()
Window Managers must call this after creating the NETRootInfo object, and before using any other meth...
Definition: netwm.cpp:827
NETRect workArea(int desktop) const
Returns the workArea for the specified desktop.
Definition: netwm.cpp:2695
void kdeGeometry(NETRect &frame, NETRect &window)
Places the window frame geometry in frame, and the application window geometry in window.
Definition: netwm.cpp:3605
unsigned long state() const
Returns the state of the window (see the NET base class documentation for a description of the variou...
Definition: netwm.cpp:4558
@ SkipTaskbar
indicates that a window should not be included on a taskbar.
Definition: netwm_def.h:457
#define mask
int timeout
QString caption()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.