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.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_H
6#define SIGNALSLOTEDITOR_H
7
9
10#include <QtDesigner/private/connectionedit_p.h>
11
12QT_BEGIN_NAMESPACE
13
14class DomConnections;
15
16namespace qdesigner_internal {
17
19
21{
23
24public:
26
27 virtual void setSignal(SignalSlotConnection *con, const QString &member);
28 virtual void setSlot(SignalSlotConnection *con, const QString &member);
29 void setSource(Connection *con, const QString &obj_name) override;
30 void setTarget(Connection *con, const QString &obj_name) override;
31
32 DomConnections *toUi() const;
33 void fromUi(const DomConnections *connections, QWidget *parent);
34
35 QDesignerFormWindowInterface *formWindow() const { return m_form_window; }
36
37 QObject *objectByName(QWidget *topLevel, const QString &name) const;
38
39 void addEmptyConnection();
40
41protected:
42 QWidget *widgetAt(const QPoint &pos) const override;
43
44private:
45 Connection *createConnection(QWidget *source, QWidget *destination) override;
46 void modifyConnection(Connection *con) override;
47
48 QDesignerFormWindowInterface *m_form_window;
49 bool m_showAllSignalsSlots;
50
51 friend class SetMemberCommand;
52};
53
54} // namespace qdesigner_internal
55
56QT_END_NAMESPACE
57
58#endif // SIGNALSLOTEDITOR_H
void redo() override
Applies a change to the document.
ModifyConnectionCommand(QDesignerFormWindowInterface *form, SignalSlotConnection *conn, const QString &newSignal, const QString &newSlot)
void undo() override
Reverts a change to the document.
void redo() override
Applies a change to the document.
void undo() override
Reverts a change to the document.
SetMemberCommand(SignalSlotConnection *con, EndPoint::Type type, const QString &member, SignalSlotEditor *editor)
SignalSlotConnection(ConnectionEdit *edit, QWidget *source=nullptr, QWidget *target=nullptr)
State isValid(const QWidget *background) const
virtual void setSlot(SignalSlotConnection *con, const QString &member)
virtual void setSignal(SignalSlotConnection *con, const QString &member)
void setTarget(Connection *con, const QString &obj_name) override
void setSource(Connection *con, const QString &obj_name) override
Connection * createConnection(QWidget *source, QWidget *destination) override
void fromUi(const DomConnections *connections, QWidget *parent)
QWidget * widgetAt(const QPoint &pos) const override
QObject * objectByName(QWidget *topLevel, const QString &name) const
void modifyConnection(Connection *con) override
QDesignerFormWindowInterface * formWindow() const
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
static bool skipWidget(const QWidget *w)
#define QT_SIGNALSLOTEDITOR_EXPORT