File indexing completed on 2024-04-28 15:29:22
0001 /* 0002 This file is part of the KDE project 0003 SPDX-FileCopyrightText: 1999 Simon Hausmann <hausmann@kde.org> 0004 SPDX-FileCopyrightText: 1999 David Faure <faure@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 #ifndef __kparts_partselectevent_h__ 0009 #define __kparts_partselectevent_h__ 0010 0011 #include <kparts/event.h> 0012 0013 #if KPARTS_ENABLE_DEPRECATED_SINCE(5, 103) 0014 namespace KParts 0015 { 0016 class Part; 0017 0018 class PartSelectEventPrivate; 0019 /** 0020 * @class PartSelectEvent partselectevent.h <KParts/PartSelectEvent> 0021 * 0022 * @short This event is sent when a part is selected or deselected. 0023 * @see KParts::PartManager::setSelectionPolicy 0024 * @deprecated Since 5.72, for lack of usage. 0025 */ 0026 class KPARTS_EXPORT PartSelectEvent : public Event 0027 { 0028 public: 0029 KPARTS_DEPRECATED_VERSION_BELATED(5, 103, 5, 72, "For lack of usage.") 0030 PartSelectEvent(bool selected, Part *part, QWidget *widget); 0031 ~PartSelectEvent() override; 0032 bool selected() const; 0033 0034 Part *part() const; 0035 QWidget *widget() const; 0036 0037 KPARTS_DEPRECATED_VERSION_BELATED(5, 103, 5, 72, "For lack of usage.") 0038 static bool test(const QEvent *event); 0039 0040 private: 0041 Q_DECLARE_PRIVATE_D(Event::d, PartSelectEvent) 0042 #if KPARTS_BUILD_DEPRECATED_SINCE(5, 79) 0043 QT_WARNING_PUSH 0044 QT_WARNING_DISABLE_CLANG("-Wunused-private-field") 0045 // Unused, kept for ABI compatibility 0046 const void *__kparts_d_do_not_use; 0047 QT_WARNING_POP 0048 #endif 0049 }; 0050 0051 } // namespace 0052 0053 #endif 0054 #endif