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
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists for the convenience
9// of Qt Designer. This header
10// file may change from version to version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef SELECTSIGNALDIALOG_H
16#define SELECTSIGNALDIALOG_H
17
18#include <QtWidgets/qdialog.h>
19#include <QtCore/qstringlist.h>
20
22
23class QDesignerFormEditorInterface;
24class QStandardItemModel;
25
26namespace Ui { class SelectSignalDialog; }
27
28namespace qdesigner_internal {
29
31{
33public:
34 struct Method
35 {
36 Method() = default;
37 explicit Method(const QString &c, const QString &s, const QStringList &p = QStringList())
39 bool isValid() const { return !signature.isEmpty(); }
40
44 };
45
46 explicit SelectSignalDialog(QWidget *parent = nullptr);
48
49 Method selectedMethod() const;
50
51 void populate(QDesignerFormEditorInterface *core, QObject *object,
52 const QString &defaultSignal);
53
54private slots:
55 void currentChanged(const QModelIndex &, const QModelIndex &);
56 void activated(const QModelIndex &);
57
58private:
59 Method methodFromIndex(const QModelIndex &) const;
60 void populateModel(QDesignerFormEditorInterface *core, QObject *object);
61
62 QT_PREPEND_NAMESPACE(Ui)::SelectSignalDialog *m_ui;
63 QPushButton *m_okButton;
64 QStandardItemModel *m_model;
65};
66
67} // namespace qdesigner_internal
68
69QT_END_NAMESPACE
70
71Q_DECLARE_METATYPE(qdesigner_internal::SelectSignalDialog::Method)
72
73#endif // SELECTSIGNALDIALOG_H
friend class QWidget
Definition qpainter.h:421
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