KParts

partselectevent.h
1 /*
2  This file is part of the KDE project
3  SPDX-FileCopyrightText: 1999 Simon Hausmann <[email protected]>
4  SPDX-FileCopyrightText: 1999 David Faure <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 #ifndef __kparts_partselectevent_h__
9 #define __kparts_partselectevent_h__
10 
11 #include <kparts/event.h>
12 
13 #if KPARTS_ENABLE_DEPRECATED_SINCE(5, 103)
14 namespace KParts
15 {
16 class Part;
17 
18 class PartSelectEventPrivate;
19 /**
20  * @class PartSelectEvent partselectevent.h <KParts/PartSelectEvent>
21  *
22  * @short This event is sent when a part is selected or deselected.
23  * @see KParts::PartManager::setSelectionPolicy
24  * @deprecated Since 5.72, for lack of usage.
25  */
26 class KPARTS_EXPORT PartSelectEvent : public Event
27 {
28 public:
29  KPARTS_DEPRECATED_VERSION_BELATED(5, 103, 5, 72, "For lack of usage.")
30  PartSelectEvent(bool selected, Part *part, QWidget *widget);
31  ~PartSelectEvent() override;
32  bool selected() const;
33 
34  Part *part() const;
35  QWidget *widget() const;
36 
37  KPARTS_DEPRECATED_VERSION_BELATED(5, 103, 5, 72, "For lack of usage.")
38  static bool test(const QEvent *event);
39 
40 private:
41  Q_DECLARE_PRIVATE_D(Event::d, PartSelectEvent)
42 #if KPARTS_BUILD_DEPRECATED_SINCE(5, 79)
43  // Unused, kept for ABI compatibility
44  const void *__kparts_d_do_not_use;
45 #endif
46 };
47 
48 } // namespace
49 
50 #endif
51 #endif
This event is sent when a part is selected or deselected.
Base class for parts.
Definition: part.h:62
The KParts namespace,.
Base class for all KParts events.
Definition: event.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Jan 27 2023 07:41:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.