File indexing completed on 2024-05-12 05:14:50

0001 /*
0002  *  mainwindowbase.h  -  base class for main application windows
0003  *  Program:  kalarm
0004  *  SPDX-FileCopyrightText: 2002, 2006, 2007, 2015 David Jarvie <djarvie@kde.org>
0005  *
0006  *  SPDX-License-Identifier: GPL-2.0-or-later
0007  */
0008 
0009 #pragma once
0010 
0011 #include <KXmlGuiWindow>
0012 
0013 /**
0014  *  The MainWindowBase class is a base class for KAlarm's main window and message window.
0015  *  When the window is closed, it only allows the application to quit if there is no
0016  *  system tray icon displayed.
0017  *
0018  *  @author David Jarvie <djarvie@kde.org>
0019  */
0020 class MainWindowBase : public KXmlGuiWindow
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     explicit MainWindowBase(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::Window);
0026 
0027 protected:
0028     void enterEvent(QEnterEvent*) override;
0029 };
0030 
0031 // vim: et sw=4: