Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
connectdialog_p.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
CONNECTDIALOG_H
6
#
define
CONNECTDIALOG_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
"ui_connectdialog.h"
20
#
include
<
QtWidgets
/
qdialog
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QDesignerFormWindowInterface;
25
class
QPushButton;
26
27
namespace
qdesigner_internal
{
28
29
class
ConnectDialog
:
public
QDialog
30
{
31
Q_OBJECT
32
public
:
33
ConnectDialog
(
QDesignerFormWindowInterface
*
formWindow
,
QWidget
*
sender
,
QWidget
*
receiver
,
QWidget
*
parent
=
nullptr
);
34
35
QString
signal
()
const
;
36
QString
slot
()
const
;
37
38
void
setSignalSlot
(
const
QString &signal,
const
QString &slot);
39
40
bool
showAllSignalsSlots
()
const
;
41
void
setShowAllSignalsSlots
(
bool
showIt);
42
43
private
slots
:
44
void
populateLists
();
45
void
selectSignal(QListWidgetItem *item);
46
void
selectSlot(QListWidgetItem *item);
47
void
populateSignalList();
48
void
populateSlotList(
const
QString &signal = QString());
49
void
editSignals();
50
void
editSlots();
51
52
private
:
53
enum
WidgetMode { NormalWidget, MainContainer, PromotedWidget };
54
55
static
WidgetMode widgetMode(QWidget *w, QDesignerFormWindowInterface *formWindow);
56
QPushButton *okButton();
57
void
setOkButtonEnabled(
bool
);
58
void
editSignalsSlots(QWidget *w, WidgetMode mode,
int
signalSlotDialogMode);
59
60
QWidget *m_source;
61
QWidget *m_destination;
62
const
WidgetMode m_sourceMode;
63
const
WidgetMode m_destinationMode;
64
QDesignerFormWindowInterface *m_formWindow;
65
QT_PREPEND_NAMESPACE(Ui)::
ConnectDialog
m_ui
;
66
};
67
68
}
69
70
QT_END_NAMESPACE
71
72
#
endif
// CONNECTDIALOG_H
qdesigner_internal::ConnectDialog
Definition
connectdialog_p.h:30
qdesigner_internal::ConnectDialog::showAllSignalsSlots
bool showAllSignalsSlots() const
Definition
connectdialog.cpp:132
qdesigner_internal::ConnectDialog::signal
QString signal() const
Definition
connectdialog.cpp:167
qdesigner_internal::ConnectDialog::slot
QString slot() const
Definition
connectdialog.cpp:175
qdesigner_internal::ConnectDialog::setShowAllSignalsSlots
void setShowAllSignalsSlots(bool showIt)
Definition
connectdialog.cpp:137
qdesigner_internal::ConnectDialog::setSignalSlot
void setSignalSlot(const QString &signal, const QString &slot)
Definition
connectdialog.cpp:111
widgetLabel
static QString widgetLabel(QDesignerFormEditorInterface *core, QWidget *widget)
Definition
connectdialog.cpp:33
realClassName
static QString realClassName(QDesignerFormEditorInterface *core, QWidget *widget)
Definition
connectdialog.cpp:23
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qdesigner_internal
Auxiliary methods to store/retrieve settings.
Definition
buddyeditor.cpp:67
qttools
src
designer
src
components
signalsloteditor
connectdialog_p.h
Generated on
for Qt by
1.18.0