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
qsignalmapper.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QSIGNALMAPPER_H
6
#
define
QSIGNALMAPPER_H
7
8
#
include
<
QtCore
/
qobject
.
h
>
9
10
QT_BEGIN_NAMESPACE
11
12
class
QSignalMapperPrivate;
13
14
class
Q_CORE_EXPORT
QSignalMapper
:
public
QObject
15
{
16
Q_OBJECT
17
Q_DECLARE_PRIVATE(QSignalMapper)
18
public
:
19
explicit
QSignalMapper(QObject *parent =
nullptr
);
20
~QSignalMapper();
21
22
void
setMapping(QObject *sender,
int
id);
23
void
setMapping(QObject *sender,
const
QString &text);
24
void
setMapping(QObject *sender, QObject *object);
25
void
removeMappings(QObject *sender);
26
27
QObject *mapping(
int
id)
const
;
28
QObject *mapping(
const
QString &text)
const
;
29
QObject *mapping(QObject *object)
const
;
30
31
Q_SIGNALS:
32
void
mappedInt(
int
);
33
void
mappedString(
const
QString &);
34
void
mappedObject(QObject *);
35
36
public
Q_SLOTS:
37
void
map();
38
void
map(QObject *sender);
39
40
private
:
41
Q_DISABLE_COPY(QSignalMapper)
42
};
43
44
QT_END_NAMESPACE
45
46
#
endif
// QSIGNALMAPPER_H
QSignalMapperPrivate
Definition
qsignalmapper.cpp:14
QSignalMapperPrivate::objectHash
QHash< QObject *, QObject * > objectHash
Definition
qsignalmapper.cpp:37
QSignalMapperPrivate::stringHash
QHash< QObject *, QString > stringHash
Definition
qsignalmapper.cpp:36
QSignalMapper
\inmodule QtCore
Definition
qsignalmapper.h:15
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
corelib
kernel
qsignalmapper.h
Generated on
for Qt by
1.18.0