/* This file is part of the KDE project SPDX-FileCopyrightText: 1999 Simon Hausmann SPDX-FileCopyrightText: 1999 David Faure SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef __kparts_guiactivateevent_h__ #define __kparts_guiactivateevent_h__ #include #include #include namespace KParts { class GUIActivateEventPrivate; /** * @class GUIActivateEvent guiactivateevent.h * * @short This event is sent to a Part when its GUI has been activated or deactivated. * This is related to PartActivateEvent, but the difference is that * GUIActivateEvent happens later (when the GUI is actually built), * only for parts that have GUI elements, and only if using KParts::MainWindow. * @see KParts::Part::guiActivateEvent() */ class KPARTS_EXPORT GUIActivateEvent : public QEvent { public: GUIActivateEvent(bool activated); ~GUIActivateEvent() override; bool activated() const; static bool test(const QEvent *event); private: const std::unique_ptr d; }; } // namespace #endif