CalendarSupport

messagewidget.h
1/*
2 This file is part of KOrganizer.
3
4 SPDX-FileCopyrightText: 2013 Sérgio Martins <iamsergio@gmail.com>
5
6 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
7*/
8
9#pragma once
10
11#include "calendarsupport_export.h"
12
13#include <KMessageWidget>
14
15namespace CalendarSupport
16{
17/**
18 * Even less instrusive message dialog.
19 * This one goes away when you click somewhere, doesn't need a close button.
20 */
21class CALENDARSUPPORT_EXPORT MessageWidget : public KMessageWidget
22{
24public:
25 explicit MessageWidget(QWidget *parent = nullptr);
26 ~MessageWidget() override;
27 [[nodiscard]] bool eventFilter(QObject *watched, QEvent *event) override;
28 void showEvent(QShowEvent *event) override;
29 void hideEvent(QHideEvent *event) override;
30};
31}
KMessageWidget(const QString &text, QWidget *parent=nullptr)
virtual bool event(QEvent *e) override
Q_OBJECTQ_OBJECT
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:08:13 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.