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
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
22QT_BEGIN_NAMESPACE
23
24class QDesignerFormWindowInterface;
25class QPushButton;
26
27namespace qdesigner_internal {
28
29class ConnectDialog : public QDialog
30{
32public:
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
43private 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
52private:
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
70QT_END_NAMESPACE
71
72#endif // CONNECTDIALOG_H
void setSignalSlot(const QString &signal, const QString &slot)
static QString widgetLabel(QDesignerFormEditorInterface *core, QWidget *widget)
static QString realClassName(QDesignerFormEditorInterface *core, QWidget *widget)
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.