FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
qsignal_mapper_utils.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** FougTools
3 ** Copyright Fougue (30 Mar. 2015)
4 ** contact@fougue.pro
5 **
6 ** This software is a computer program whose purpose is to provide utility
7 ** tools for the C++ language and the Qt toolkit.
8 **
9 ** This software is governed by the CeCILL-C license under French law and
10 ** abiding by the rules of distribution of free software. You can use,
11 ** modify and/ or redistribute the software under the terms of the CeCILL-C
12 ** license as circulated by CEA, CNRS and INRIA at the following URL
13 ** "http://www.cecill.info".
14 ****************************************************************************/
15 
16 #pragma once
17 
18 #include "core.h"
19 
20 #include <QtCore/QSignalMapper>
21 
22 namespace qtcore {
23 
25 {
26 public:
27  typedef void (QSignalMapper::*SignalMapped_int)(int);
28  typedef void (QSignalMapper::*SignalMapped_QString)(const QString&);
29  typedef void (QSignalMapper::*SignalMapped_QWidgetPtr)(QWidget*);
30  typedef void (QSignalMapper::*SignalMapped_QObjectPtr)(QObject*);
31 
32  typedef void (QSignalMapper::*SlotMap)();
33  typedef void (QSignalMapper::*SlotMap_QObjectPtr)(QObject*);
34 
35  static SignalMapped_int signalMapped_int();
36  static SignalMapped_QString signalMapped_QString();
37  static SignalMapped_QWidgetPtr signalMapped_QWidgetPtr();
38  static SignalMapped_QObjectPtr signalMapped_QObjectPtr();
39 
40  static SlotMap slotMap();
41  static SlotMap_QObjectPtr slotMap_QObjectPtr();
42 };
43 
44 } // namespace qtcore
Provides a collection of tools around QSignalMapper.
Definition: qsignal_mapper_utils.h:24
#define QTTOOLS_CORE_EXPORT
Definition: core.h:27
Definition: grid_numbering.cpp:19