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
selectsignaldialog_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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//
6// W A R N I N G
7// -------------
8//
9// This file is not part of the Qt API. It exists for the convenience
10// of Qt Designer. This header
11// file may change from version to version without notice, or even be removed.
12//
13// We mean it.
14//
15
16#ifndef SELECTSIGNALDIALOG_H
17#define SELECTSIGNALDIALOG_H
18
19#include <QtWidgets/qdialog.h>
20#include <QtCore/qstringlist.h>
21
23
24class QDesignerFormEditorInterface;
25class QStandardItemModel;
26
27namespace Ui { class SelectSignalDialog; }
28
29namespace qdesigner_internal {
30
32{
34public:
35 struct Method
36 {
37 Method() = default;
38 explicit Method(const QString &c, const QString &s, const QStringList &p = QStringList())
40 bool isValid() const { return !signature.isEmpty(); }
41
45 };
46
47 explicit SelectSignalDialog(QWidget *parent = nullptr);
49
50 Method selectedMethod() const;
51
52 void populate(QDesignerFormEditorInterface *core, QObject *object,
53 const QString &defaultSignal);
54
55private slots:
56 void currentChanged(const QModelIndex &, const QModelIndex &);
57 void activated(const QModelIndex &);
58
59private:
60 Method methodFromIndex(const QModelIndex &) const;
61 void populateModel(QDesignerFormEditorInterface *core, QObject *object);
62
63 QT_PREPEND_NAMESPACE(Ui)::SelectSignalDialog *m_ui;
64 QPushButton *m_okButton;
65 QStandardItemModel *m_model;
66};
67
68} // namespace qdesigner_internal
69
70QT_END_NAMESPACE
71
72Q_DECLARE_METATYPE(qdesigner_internal::SelectSignalDialog::Method)
73
74#endif // SELECTSIGNALDIALOG_H
friend class QWidget
Definition qpainter.h:432
bool setAlignment(const QDesignerFormEditorInterface *core, QWidget *w)
QDesignerTaskMenuPrivate(QWidget *widget, QObject *parent)
void populate(QDesignerFormEditorInterface *core, QObject *object, const QString &defaultSignal)
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
static void createSizeCommand(QDesignerFormWindowInterface *fw, QWidget *w, int flags)
static void getApplicableObjects(const QDesignerFormWindowInterface *fw, QWidget *current, QDesignerTaskMenu::PropertyMode pm, Container *c)
static QString objName(const QDesignerFormEditorInterface *core, QObject *object)
static QAction * createSeparatorHelper(QObject *parent)
@ ApplyMaximumWidth
@ ApplyMaximumHeight
@ ApplyMinimumHeight
@ ApplyMinimumWidth