Plasma
Go to the documentation of this file.
20#ifndef PLASMA_POPUPAPPLET_H
21#define PLASMA_POPUPAPPLET_H
28class QGraphicsLinearLayout;
35class PopupAppletPrivate;
55 Q_PROPERTY(Qt::AlignmentFlag popupAlignment READ popupAlignment WRITE setPopupAlignment)
67 void setPopupIcon(
const QIcon &icon);
78 void setPopupIcon(
const QString &iconName);
83 QIcon popupIcon()
const;
91 void setWidget(
QWidget * widget);
113 void setPopupAlignment(Qt::AlignmentFlag alignment);
119 Qt::AlignmentFlag popupAlignment()
const;
127 void setPassivePopup(
bool passive);
132 bool isPassivePopup()
const;
137 bool isPopupShowing()
const;
143 bool isIconified()
const;
157 void showPopup(uint displayTime = 0);
172 virtual void popupEvent(
bool show);
177 QSizeF sizeHint(Qt::SizeHint which,
const QSizeF & constraint = QSizeF())
const;
182 void mousePressEvent(QGraphicsSceneMouseEvent *event);
187 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
192 bool eventFilter(
QObject *watched, QEvent *event);
197 void dragEnterEvent(QGraphicsSceneDragDropEvent *event);
202 void dragLeaveEvent(QGraphicsSceneDragDropEvent *event);
207 void dropEvent(QGraphicsSceneDragDropEvent *event);
212 void timerEvent(QTimerEvent *event);
223 PopupApplet(
const QString &packagePath, uint appletId,
const QVariantList &args);
225 Q_PRIVATE_SLOT(d,
void internalTogglePopup())
226 Q_PRIVATE_SLOT(d,
void hideTimedPopup())
227 Q_PRIVATE_SLOT(d,
void clearPopupLostFocus())
228 Q_PRIVATE_SLOT(d,
void dialogSizeChanged())
229 Q_PRIVATE_SLOT(d,
void dialogStatusChanged(
bool))
230 Q_PRIVATE_SLOT(d,
void updateDialogPosition())
231 Q_PRIVATE_SLOT(d,
void appletActivated())
232 Q_PRIVATE_SLOT(d,
void iconSizeChanged(
int))
236 friend class AppletPrivate;
238 friend class PopupAppletPrivate;
239 PopupAppletPrivate * const d;
A dialog that uses the Plasma style.
Extends applets to allow detachable parts.
Namespace for everything in libplasma.
ItemStatus
Status of an applet.
PopupPlacement
The popup position enumeration relatively to his attached widget.
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
KDE's Doxygen guidelines are available online.