Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
signalsloteditor_tool.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3// Qt-Security score:significant reason:default
4
5#ifndef SIGNALSLOTEDITOR_TOOL_H
6#define SIGNALSLOTEDITOR_TOOL_H
7
10
11#include <QtCore/qpointer.h>
12#include <QtDesigner/abstractformwindowtool.h>
13
15
16class QDesignerFormEditorInterface;
17class QDesignerFormWindowInterface;
18class QAction;
19
20namespace qdesigner_internal {
21
23
25{
27public:
30
31 QDesignerFormEditorInterface *core() const override;
32 QDesignerFormWindowInterface *formWindow() const override;
33
34 QWidget *editor() const override;
35
36 QAction *action() const override;
37
38 void activated() override;
39 void deactivated() override;
40
41 bool handleEvent(QWidget *widget, QWidget *managedWidget, QEvent *event) override;
42
43 void saveToDom(DomUI *ui, QWidget *mainContainer) override;
44 void loadFromDom(DomUI *ui, QWidget *mainContainer) override;
45
46private:
47 QDesignerFormWindowInterface *m_formWindow;
48 mutable QPointer<qdesigner_internal::SignalSlotEditor> m_editor;
49 QAction *m_action;
50};
51
52} // namespace qdesigner_internal
53
54QT_END_NAMESPACE
55
56#endif // SIGNALSLOTEDITOR_TOOL_H
bool isInitialized() const override
Returns true if the plugin interface is initialized; otherwise returns false.
QAction * action() const override
Returns the action associated with this interface.
QDesignerFormEditorInterface * core() const override
Returns the core form editor interface associated with this component.
void initialize(QDesignerFormEditorInterface *core) override
Initializes the plugin interface for the specified core interface.
QDesignerFormWindowInterface * formWindow() const override
void saveToDom(DomUI *ui, QWidget *mainContainer) override
void loadFromDom(DomUI *ui, QWidget *mainContainer) override
QDesignerFormEditorInterface * core() const override
bool handleEvent(QWidget *widget, QWidget *managedWidget, QEvent *event) override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
#define QT_SIGNALSLOTEDITOR_EXPORT