File indexing completed on 2024-12-29 04:46:19

0001 /*
0002   This file is part of KOrganizer.
0003 
0004   SPDX-FileCopyrightText: 2013 Sérgio Martins <iamsergio@gmail.com>
0005 
0006   SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
0007 */
0008 
0009 #pragma once
0010 
0011 #include "calendarsupport_export.h"
0012 
0013 #include <KMessageWidget>
0014 
0015 namespace CalendarSupport
0016 {
0017 /**
0018  * Even less instrusive message dialog.
0019  * This one goes away when you click somewhere, doesn't need a close button.
0020  */
0021 class CALENDARSUPPORT_EXPORT MessageWidget : public KMessageWidget
0022 {
0023     Q_OBJECT
0024 public:
0025     explicit MessageWidget(QWidget *parent = nullptr);
0026     ~MessageWidget() override;
0027     bool eventFilter(QObject *watched, QEvent *event) override;
0028     void showEvent(QShowEvent *event) override;
0029     void hideEvent(QHideEvent *event) override;
0030 };
0031 }