Changeset 561 for trunk/src/gui/accessible/qaccessible_mac.mm
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/gui/accessible/qaccessible_mac.mm
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the QtGui module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 505 505 506 506 QAElement::QAElement(HIObjectRef object, int child) 507 :elementRef(508 #ifndef QT_MAC_USE_COCOA509 AXUIElementCreateWithHIObjectAndIdentifier(object, child)510 #endif511 )512 507 { 513 508 #ifndef QT_MAC_USE_COCOA … … 1233 1228 else if (CFStringCompare(attribute, CFStringRef(QAXHelpAttribute), 0) == kCFCompareEqualTo) 1234 1229 return QAccessible::Help; 1235 #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)1236 1230 else if (CFStringCompare(attribute, CFStringRef(QAXDescriptionAttribute), 0) == kCFCompareEqualTo) 1237 1231 return QAccessible::Description; 1238 #endif1239 1232 else 1240 1233 return -1; … … 1443 1436 qt_mac_append_cf_uniq(attrs, CFStringRef(QAXEnabledAttribute)); 1444 1437 qt_mac_append_cf_uniq(attrs, CFStringRef(QAXWindowAttribute)); 1445 #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)1446 1438 qt_mac_append_cf_uniq(attrs, CFStringRef(QAXTopLevelUIElementAttribute)); 1447 #endif1448 1439 1449 1440 // Append these names if the QInterafceItem returns any data for them. 1450 1441 appendIfSupported(attrs, CFStringRef(QAXTitleAttribute), interface); 1451 1442 appendIfSupported(attrs, CFStringRef(QAXValueAttribute), interface); 1452 #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)1453 1443 appendIfSupported(attrs, CFStringRef(QAXDescriptionAttribute), interface); 1454 1444 appendIfSupported(attrs, CFStringRef(QAXLinkedUIElementsAttribute), interface); 1455 #endif1456 1445 appendIfSupported(attrs, CFStringRef(QAXHelpAttribute), interface); 1457 1446 appendIfSupported(attrs, CFStringRef(QAXTitleUIElementAttribute), interface); … … 1706 1695 has the Window role. (Can also be a sheet or a drawer) 1707 1696 */ 1708 #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)1709 1697 static OSStatus handleTopLevelUIElementAttribute(EventHandlerCallRef next_ref, EventRef event, const QAInterface &interface) 1710 1698 { 1711 1699 return navigateAncestors<IsWindowTest>(next_ref, event, interface, CFStringRef(QAXTopLevelUIElementAttribute)); 1712 1700 } 1713 #endif1714 1701 1715 1702 /* … … 1889 1876 if (CFStringCompare(var, CFStringRef(QAXChildrenAttribute), 0) == kCFCompareEqualTo) { 1890 1877 return handleChildrenAttribute(next_ref, event, interface); 1891 #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)1892 1878 } else if(CFStringCompare(var, CFStringRef(QAXTopLevelUIElementAttribute), 0) == kCFCompareEqualTo) { 1893 1879 return handleTopLevelUIElementAttribute(next_ref, event, interface); 1894 #endif1895 1880 } else if(CFStringCompare(var, CFStringRef(QAXWindowAttribute), 0) == kCFCompareEqualTo) { 1896 1881 return handleWindowAttribute(next_ref, event, interface); … … 1982 1967 return handleSubroleAttribute(next_ref, event, interface); 1983 1968 } else if (CFStringCompare(var, CFStringRef(QAXRoleDescriptionAttribute), 0) == kCFCompareEqualTo) { 1984 #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4) &&!defined(QT_MAC_USE_COCOA)1969 #if !defined(QT_MAC_USE_COCOA) 1985 1970 if (HICopyAccessibilityRoleDescription) { 1986 1971 const CFStringRef roleDescription = HICopyAccessibilityRoleDescription(macRole(interface), 0); … … 2006 1991 handleStringAttribute(event, text, interface); 2007 1992 } 2008 #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)2009 1993 } else if (CFStringCompare(var, CFStringRef(QAXDescriptionAttribute), 0) == kCFCompareEqualTo) { 2010 1994 const QAccessible::Role role = interface.role(); … … 2013 1997 } else if (CFStringCompare(var, CFStringRef(QAXLinkedUIElementsAttribute), 0) == kCFCompareEqualTo) { 2014 1998 return CallNextEventHandler(next_ref, event); 2015 #endif2016 1999 } else if (CFStringCompare(var, CFStringRef(QAXHelpAttribute), 0) == kCFCompareEqualTo) { 2017 2000 const QAccessible::Role role = interface.role();
Note:
See TracChangeset
for help on using the changeset viewer.