26 #ifndef DIGIKAM_DNOTIFICATION_POPUP_H
27 #define DIGIKAM_DNOTIFICATION_POPUP_H
37 class QSystemTrayIcon;
52 Q_PROPERTY(
bool autoDelete READ autoDelete WRITE setAutoDelete)
53 Q_PROPERTY(
int timeout READ timeout WRITE setTimeout)
71 explicit DNotificationPopup(QWidget*
const parent =
nullptr, Qt::WindowFlags f = Qt::WindowFlags());
86 void setView(QWidget* child);
91 void setView(
const QString& caption,
const QString& text = QString());
96 virtual void setView(
const QString& caption,
const QString& text,
const QPixmap& icon);
119 QWidget* standardView(
const QString& caption,
const QString& text,
120 const QPixmap& icon, QWidget* parent =
nullptr);
125 QWidget* view()
const;
138 virtual void setAutoDelete(
bool autoDelete);
145 bool autoDelete()
const;
150 QPoint anchor()
const;
157 void setAnchor(
const QPoint& anchor);
166 const QPoint& p = QPoint());
183 QWidget* parent,
const QPoint& p = QPoint());
192 QSystemTrayIcon* parent);
201 const QPixmap& icon, QWidget* parent,
int timeout = -1,
202 const QPoint& p = QPoint());
211 const QPixmap& icon, QSystemTrayIcon* parent,
int timeout = -1);
220 const QPixmap& icon, WId parent,
221 int timeout = -1,
const QPoint& p = QPoint());
229 static DNotificationPopup* message(
int popupStyle,
const QString& text, QWidget* parent,
const QPoint& p = QPoint());
237 static DNotificationPopup* message(
int popupStyle,
const QString& text, QSystemTrayIcon* parent);
245 static DNotificationPopup* message(
int popupStyle,
const QString& caption,
const QString& text,
246 QSystemTrayIcon* parent);
254 static DNotificationPopup* message(
int popupStyle,
const QString& caption,
const QString& text,
255 QWidget* parent,
const QPoint& p = QPoint());
263 static DNotificationPopup* message(
int popupStyle,
const QString& caption,
const QString& text,
264 const QPixmap& icon, QWidget* parent,
int timeout = -1,
265 const QPoint& p = QPoint());
273 static DNotificationPopup* message(
int popupStyle,
const QString& caption,
const QString& text,
274 const QPixmap& icon, QSystemTrayIcon* parent,
int timeout = -1);
282 static DNotificationPopup* message(
int popupStyle,
const QString& caption,
const QString& text,
283 const QPixmap& icon, WId parent,
int timeout = -1,
284 const QPoint& p = QPoint());
299 void setTimeout(
int delay);
305 void setPopupStyle(
int popupstyle);
310 void show(
const QPoint& p);
315 void setVisible(
bool visible)
override;
341 virtual void positionSelf();
350 virtual QPoint defaultLocation()
const;
361 void moveNear(
const QRect& target);
366 void hideEvent(QHideEvent*)
override;
371 void mouseReleaseEvent(QMouseEvent* e)
override;
376 void paintEvent(QPaintEvent* pe)
override;
Definition: datefolderview.cpp:43