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
4#ifndef SIGNALSLOTEDITOR_TOOL_H
5#define SIGNALSLOTEDITOR_TOOL_H
6
9
10#include <QtCore/qpointer.h>
11#include <QtDesigner/abstractformwindowtool.h>
12
14
15class QDesignerFormEditorInterface;
16class QDesignerFormWindowInterface;
17class QAction;
18
19namespace qdesigner_internal {
20
22
24{
26public:
29
30 QDesignerFormEditorInterface *core() const override;
31 QDesignerFormWindowInterface *formWindow() const override;
32
33 QWidget *editor() const override;
34
35 QAction *action() const override;
36
37 void activated() override;
38 void deactivated() override;
39
40 bool handleEvent(QWidget *widget, QWidget *managedWidget, QEvent *event) override;
41
42 void saveToDom(DomUI *ui, QWidget *mainContainer) override;
43 void loadFromDom(DomUI *ui, QWidget *mainContainer) override;
44
45private:
46 QDesignerFormWindowInterface *m_formWindow;
47 mutable QPointer<qdesigner_internal::SignalSlotEditor> m_editor;
48 QAction *m_action;
49};
50
51} // namespace qdesigner_internal
52
53QT_END_NAMESPACE
54
55#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