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,
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
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
QPoint calculateNearbyPoint(const QRect &target)
Calculates the position to place the popup near the specified rectangle.
Definition: kpassivepopup.cpp:385
Definition: netwm_def.h:623
QPolygon toPolygon() const
void setPalette(const QPalette &)
void setTimeout(int delay)
Sets the delay for the popup is removed automatically.
Definition: kpassivepopup.cpp:240
indicates that a window should not be included on a taskbar.
Definition: netwm_def.h:457
KPassivePopup(QWidget *parent=0, Qt::WindowFlags f=0)
Creates a popup for the specified widget.
Definition: kpassivepopup.cpp:86
int width() const
Definition: netwm_def.h:620
void moveNear(const QRect &target)
Moves the popup to be adjacent to the icon of the specified rectangle.
Definition: kpassivepopup.cpp:376
QWidget * window() const
int right() const
void setAnchor(const QPoint &anchor)
Sets the anchor of this popup.
Definition: kpassivepopup.cpp:432
Qt::HANDLE appRootWindow(int screen)
Display * display()
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
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
int y() const
virtual void setVisible(bool visible)
void drawPolygon(const QPointF *points, int pointCount, Qt::FillRule fillRule)
Information will appear in a comic-alike balloon.
Definition: kpassivepopup.h:93
void moveTo(const QPointF &point)
int height() const
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
virtual QSize minimumSizeHint() const
bool autoDelete() const
int x() const
int y() const
QPolygonF toFillPolygon(const QMatrix &matrix) const
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
void setFrameStyle(int style)
void setLineWidth(int)
virtual QSize sizeHint() const
void update()
int x() const
int y() const
int width() const
void setBold(bool enable)
QSize size() const
QRect defaultArea() const
If no relative window (eg taskbar button, system tray window) is available, use this rectangle (pass ...
void setPopupStyle(int popupstyle)
Sets the visual appearance of the popup.
Definition: kpassivepopup.cpp:146
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
int x() const
virtual void paintEvent(QPaintEvent *)
int top() const
int left() const
void setMask(const QBitmap &bitmap)
QPoint anchor() const
Returns the position to which this popup is anchored.
Definition: kpassivepopup.cpp:427
bool isEmpty() const
void move(int x, int y)
void setBrush(const QBrush &brush)
QPoint center() const
int timeout() const
Returns the delay before the popup is removed automatically.
WId winId() const
void deleteLater()
virtual void setAutoDelete(bool autoDelete)
Enables / disables auto-deletion of this widget when the timeout occurs.
Definition: kpassivepopup.cpp:258
void hide()
A dialog-like popup that displays messages without interrupting the user.
Definition: kpassivepopup.h:79
bool isNull() const
bool isNull() const
void setStretchFactor(QWidget *widget, int stretch)
Sets the stretch factor of widget to stretch.
Definition: khbox.cpp:103
void setWindowFlags(QFlags< Qt::WindowType > type)
int width() const
QRect geometry() const
void setRect(int x, int y, int width, int height)
QPalette palette()
virtual void mouseReleaseEvent(QMouseEvent *e)
Reimplemented to detect mouse clicks.
Definition: kpassivepopup.cpp:263
Definition: netwm_def.h:637
int height() const
int count(const T &value) const
void setSpacing(int space)
Sets the spacing between the child widgets to space.
Definition: khbox.cpp:98
void clear()
int bottom() const
QPoint topLeft() const
typedef WindowFlags
void show()
Information will appear in a framed box (default)
Definition: kpassivepopup.h:92
const QPoint & pos() const
virtual void hideEvent(QHideEvent *)
Reimplemented to destroy the object when autoDelete() is enabled.
Definition: kpassivepopup.cpp:314
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
WId effectiveWinId() const
Definition: netwm_def.h:617
bool begin(QPaintDevice *device)
void arcTo(const QRectF &rectangle, qreal startAngle, qreal sweepLength)
int height() const
QRegion mask() const
virtual void paintEvent(QPaintEvent *pe)
Overwrite to paint the border when PopupStyle == Balloon.
Definition: kpassivepopup.cpp:438
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.