[PyQt] [PATCH] qtabbar.sip: fix build with accessibility disabled

Diego Rondini diego.rondini at kynetics.com
Wed Jul 19 13:53:06 BST 2017


Signed-off-by: Diego Rondini <diego.rondini at kynetics.com>
---
 sip/QtWidgets/qtabbar.sip | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sip/QtWidgets/qtabbar.sip b/sip/QtWidgets/qtabbar.sip
index ffe2d3b..80ad816 100644
--- a/sip/QtWidgets/qtabbar.sip
+++ b/sip/QtWidgets/qtabbar.sip
@@ -166,11 +166,15 @@ protected:
 
 public:
 %If (Qt_5_8_0 -)
+%If (PyQt_Accessibility)
     QString accessibleTabName(int index) const;
 %End
+%End
 %If (Qt_5_8_0 -)
+%If (PyQt_Accessibility)
     void setAccessibleTabName(int index, const QString &name);
 %End
+%End
 
 private:
     QTabBar(const QTabBar &);
-- 
2.7.4



More information about the PyQt mailing list