KDEUI
kpassivepopup.cpp
Go to the documentation of this file.
52 static const Qt::WindowFlags POPUP_FLAGS = Qt::Tool | Qt::X11BypassWindowManagerHint | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint;
574 KPassivePopup *KPassivePopup::message( int popupStyle, const QString &caption, const QString &text,
593 KPassivePopup *KPassivePopup::message( int popupStyle, const QString &caption, const QString &text,
599 KPassivePopup *KPassivePopup::message( int popupStyle, const QString &caption, const QString &text,
612 KPassivePopup *KPassivePopup::message( int popupStyle, const QString &caption, const QString &text,
628 KPassivePopup *KPassivePopup::message( int popupStyle, const QString &text, QSystemTrayIcon *parent )
633 KPassivePopup *KPassivePopup::message( int popupStyle, const QString &caption, const QString &text,
void kdeGeometry(NETRect &frame, NETRect &window)
Places the window frame geometry in frame, and the application window geometry in window.
Definition: netwm.cpp:3605
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 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
@ SkipTaskbar
indicates that a window should not be included on a taskbar.
Definition: netwm_def.h:457
QPoint anchor() const
Returns the position to which this popup is anchored.
Definition: kpassivepopup.cpp:427
virtual void paintEvent(QPaintEvent *pe)
Overwrite to paint the border when PopupStyle == Balloon.
Definition: kpassivepopup.cpp:438
QString caption()
A dialog-like popup that displays messages without interrupting the user.
Definition: kpassivepopup.h:79
virtual void hideEvent(QHideEvent *)
Reimplemented to destroy the object when autoDelete() is enabled.
Definition: kpassivepopup.cpp:314
void moveNear(const QRect &target)
Moves the popup to be adjacent to the icon of the specified rectangle.
Definition: kpassivepopup.cpp:376
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 setPopupStyle(int popupstyle)
Sets the visual appearance of the popup.
Definition: kpassivepopup.cpp:146
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
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
QPoint calculateNearbyPoint(const QRect &target)
Calculates the position to place the popup near the specified rectangle.
Definition: kpassivepopup.cpp:385
void setTimeout(int delay)
Sets the delay for the popup is removed automatically.
Definition: kpassivepopup.cpp:240
#define mask
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
virtual void setAutoDelete(bool autoDelete)
Enables / disables auto-deletion of this widget when the timeout occurs.
Definition: kpassivepopup.cpp:258
virtual void mouseReleaseEvent(QMouseEvent *e)
Reimplemented to detect mouse clicks.
Definition: kpassivepopup.cpp:263
KPassivePopup(QWidget *parent=0, Qt::WindowFlags f=0)
Creates a popup for the specified widget.
Definition: kpassivepopup.cpp:86
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.