KNotifications
kpassivepopup.cpp
40 static const Qt::WindowFlags POPUP_FLAGS = Qt::Tool | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint;
284 d->topLayout->setContentsMargins(leftMarginHint, topMarginHint, rightMarginHint, bottomMarginHint);
296 QWidget *KPassivePopup::standardView(const QString &caption, const QString &text, const QPixmap &icon, QWidget *parent)
445 NETWinInfo ni(QX11Info::connection(), d->window, QX11Info::appRootWindow(), NET::WMIconGeometry | NET::WMState, NET::Properties2());
514 KPassivePopup *KPassivePopup::message(const QString &caption, const QString &text, const QPixmap &icon, QWidget *parent, int timeout, const QPoint &p)
524 KPassivePopup *KPassivePopup::message(const QString &caption, const QString &text, QWidget *parent, const QPoint &p)
529 KPassivePopup *KPassivePopup::message(const QString &caption, const QString &text, const QPixmap &icon, WId parent, int timeout, const QPoint &p)
534 KPassivePopup *KPassivePopup::message(const QString &caption, const QString &text, const QPixmap &icon, QSystemTrayIcon *parent, int timeout)
544 KPassivePopup *KPassivePopup::message(const QString &caption, const QString &text, QSystemTrayIcon *parent)
550 KPassivePopup::message(int popupStyle, const QString &caption, const QString &text, const QPixmap &icon, QWidget *parent, int timeout, const QPoint &p)
566 KPassivePopup *KPassivePopup::message(int popupStyle, const QString &text, QWidget *parent, const QPoint &p)
571 KPassivePopup *KPassivePopup::message(int popupStyle, const QString &caption, const QString &text, QWidget *parent, const QPoint &p)
577 KPassivePopup::message(int popupStyle, const QString &caption, const QString &text, const QPixmap &icon, WId parent, int timeout, const QPoint &p)
593 KPassivePopup *KPassivePopup::message(int popupStyle, const QString &caption, const QString &text, const QPixmap &icon, QSystemTrayIcon *parent, int timeout)
607 KPassivePopup *KPassivePopup::message(int popupStyle, const QString &text, QSystemTrayIcon *parent)
612 KPassivePopup *KPassivePopup::message(int popupStyle, const QString &caption, const QString &text, QSystemTrayIcon *parent)
QPoint pos() const const
int x
AlignLeft
QTextStream & right(QTextStream &stream)
NET::States state() const
bool isNull() const const
KPassivePopup(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Creates a popup for the specified widget.
Definition: kpassivepopup.cpp:242
QWidget(QWidget *parent, Qt::WindowFlags f)
QPoint topLeft() const const
pos
void setPalette(const QPalette &)
Plain
int right() const const
Q_EMITQ_EMIT
void mouseReleaseEvent(QMouseEvent *e) override
Definition: kpassivepopup.cpp:376
primaryScreen
QList< QScreen * > screens()
QPalette palette()
void update()
bool setStretchFactor(QWidget *widget, int stretch)
SkipTaskbar
int width() const const
QPoint anchor() const
Returns the position to which this popup is anchored.
Definition: kpassivepopup.cpp:488
int x() const const
int y() const const
void setFrameStyle(int style)
int x() const const
int y() const const
A dialog-like popup that displays messages without interrupting the user.
Definition: kpassivepopup.h:81
int left() const const
void hide()
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
virtual int pixelMetric(QStyle::PixelMetric metric, const QStyleOption *option, const QWidget *widget) const const=0
void drawPolygon(const QPointF *points, int pointCount, Qt::FillRule fillRule)
bool begin(QPaintDevice *device)
visible
typedef WindowFlags
void deleteLater()
int bottom() const const
LinksAccessibleByMouse
int top() const const
void setWindowFlags(Qt::WindowFlags type)
QStyle * style() const const
NETSize size
void setLineWidth(int)
static KPassivePopup * message(const QString &text, QWidget *parent, const QPoint &p=QPoint())
Convenience method that displays popup with the specified message beside the icon of the specified wi...
Definition: kpassivepopup.cpp:519
void timeout()
bool isEmpty() const const
QWidget * find(WId id)
virtual QSize sizeHint() const const override
void moveNear(const QRect &target)
Moves the popup to be adjacent to target.
Definition: kpassivepopup.cpp:478
NETPoint pos
QPoint center() const const
QWidget * standardView(const QString &caption, const QString &text, const QPixmap &icon, QWidget *parent=nullptr)
Returns a widget that is used as standard view if one of the setView() methods taking the QString arg...
Definition: kpassivepopup.cpp:296
bool isNull() const const
void resize(int size)
int y
bool valid(bool withdrawn_is_valid=false) const
virtual QPoint defaultLocation() const
Returns a default location for popups when a better placement cannot be found.
Definition: kpassivepopup.cpp:432
PM_LayoutLeftMargin
void show()
minimumSizeHint
bool isNull() const const
Box
void resize(int w, int h)
void setPopupStyle(int popupstyle)
Sets the visual appearance of the popup.
Definition: kpassivepopup.cpp:256
height
void setPoint(int index, int x, int y)
int height() const const
QString path(const QString &relativePath)
void setRect(int x, int y, int width, int height)
virtual void paintEvent(QPaintEvent *) override
int height
QRect geometry() const
void setContentsMargins(int left, int top, int right, int bottom)
void setTimeout(int delay)
Sets the delay for the popup is removed automatically.
Definition: kpassivepopup.cpp:354
void move(int x, int y)
int count(const T &value) const const
geometry
void addLayout(QLayout *layout, int stretch)
void setBold(bool enable)
virtual void setAutoDelete(bool autoDelete)
Sets whether the popup will be deleted when it is hidden.
Definition: kpassivepopup.cpp:371
KJOBWIDGETS_EXPORT QWidget * window(KJob *job)
width
NETRect iconGeometry() const
void setMask(const QBitmap &bitmap)
size
SolidPattern
QObject * parent() const const
color1
int width
void setView(QWidget *child)
Sets the main view to be the specified widget (which must be a child of the popup).
Definition: kpassivepopup.cpp:271
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:49:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:49:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.