45# define QtItemSetTextAlignment(p, a) p->setTextAlignment(Qt::Alignment(a));
46#else
47# define QtItemSetTextAlignment(p, a) p->setTextAlignment(a);
48#endif
49
51#if TTK_QT_VERSION_CHECK(5,13,0)
52# define QtContainerSwap(p, i, j) p->swapItemsAt(i, j)
53#else
54# define QtContainerSwap(p, i, j) p->swap(i, j)
55#endif
56
58#if TTK_QT_VERSION_CHECK(5,15,0)
59# define QtNetworkErrorConnect(p, q, f, s) QObject::connect(p, SIGNAL(errorOccurred(QNetworkReply::NetworkError)), q, s(f(QNetworkReply::NetworkError)))
60#else
61# define QtNetworkErrorConnect(p, q, f, s) QObject::connect(p, SIGNAL(error(QNetworkReply::NetworkError)), q, s(f(QNetworkReply::NetworkError)))
62#endif
63
65#if TTK_QT_VERSION_CHECK(5,15,0)
66# define QtNetworkErrorVoidConnect(p, q, f, s) QObject::connect(p, SIGNAL(errorOccurred(QNetworkReply::NetworkError)), q, s(f()))
67#else
68# define QtNetworkErrorVoidConnect(p, q, f, s) QObject::connect(p, SIGNAL(error(QNetworkReply::NetworkError)), q, s(f()))
69#endif
70
72#if TTK_QT_VERSION_CHECK(5,15,0)
73# define QtSocketErrorConnect(p, q, f, s) QObject::connect(p, SIGNAL(errorOccurred(QAbstractSocket::SocketError)), q, s(f(QAbstractSocket::SocketError)))
74#else
75# define QtSocketErrorConnect(p, q, f, s) QObject::connect(p, SIGNAL(error(QAbstractSocket::SocketError)), q, s(f(QAbstractSocket::SocketError)))
76#endif
77
79#if TTK_QT_VERSION_CHECK(5,15,0)
80# define QtSocketErrorVoidConnect(p, q, f, s) QObject::connect(p, SIGNAL(errorOccurred(QAbstractSocket::SocketError)), q, s(f()))
81#else
82# define QtSocketErrorVoidConnect(p, q, f, s) QObject::connect(p, SIGNAL(error(QAbstractSocket::SocketError)), q, s(f()))
83#endif
84
86#if TTK_QT_VERSION_CHECK(5,15,0)
87# define QtProcessConnect(p, q, f, s) QObject::connect(p, SIGNAL(errorOccurred(QProcess::ProcessError)), q, s(f(QProcess::ProcessError)))
88#else
89# define QtProcessConnect(p, q, f, s) QObject::connect(p, SIGNAL(error(QProcess::ProcessError)), q, s(f(QProcess::ProcessError)))
90#endif
91
93#if TTK_QT_VERSION_CHECK(5,15,0)
94# define QtProcessVoidConnect(p, q, f, s) QObject::connect(p, SIGNAL(errorOccurred(QProcess::ProcessError)), q, s(f()))
95#else
96# define QtProcessVoidConnect(p, q, f, s) QObject::connect(p, SIGNAL(error(QProcess::ProcessError)), q, s(f()))
97#endif
98
100#if TTK_QT_VERSION_CHECK(5,15,0)
101# define QtButtonGroupConnect(p, q, f, s) QObject::connect(p, SIGNAL(idClicked(int)), q, s(f(int)))
102#else
103# define QtButtonGroupConnect(p, q, f, s) QObject::connect(p, SIGNAL(buttonClicked(int)), q, s(f(int)))
104#endif
105
107#if TTK_QT_VERSION_CHECK(5,15,0)
108# define QtButtonGroupVoidConnect(p, q, f, s) QObject::connect(p, SIGNAL(idClicked(int)), q, s(f()))
109#else
110# define QtButtonGroupVoidConnect(p, q, f, s) QObject::connect(p, SIGNAL(buttonClicked(int)), q, s(f()))