Changeset 561 for trunk/src/gui/accessible
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 20 edited
-
. (modified) (1 prop)
-
src/gui/accessible/accessible.pri (modified) (1 diff)
-
src/gui/accessible/qaccessible.cpp (modified) (6 diffs)
-
src/gui/accessible/qaccessible.h (modified) (7 diffs)
-
src/gui/accessible/qaccessible2.cpp (modified) (4 diffs)
-
src/gui/accessible/qaccessible2.h (modified) (6 diffs)
-
src/gui/accessible/qaccessible_mac.mm (modified) (11 diffs)
-
src/gui/accessible/qaccessible_mac_carbon.cpp (modified) (3 diffs)
-
src/gui/accessible/qaccessible_mac_cocoa.mm (modified) (1 diff)
-
src/gui/accessible/qaccessible_mac_p.h (modified) (3 diffs)
-
src/gui/accessible/qaccessible_unix.cpp (modified) (3 diffs)
-
src/gui/accessible/qaccessible_win.cpp (modified) (13 diffs)
-
src/gui/accessible/qaccessiblebridge.cpp (modified) (3 diffs)
-
src/gui/accessible/qaccessiblebridge.h (modified) (3 diffs)
-
src/gui/accessible/qaccessibleobject.cpp (modified) (8 diffs)
-
src/gui/accessible/qaccessibleobject.h (modified) (3 diffs)
-
src/gui/accessible/qaccessibleplugin.cpp (modified) (3 diffs)
-
src/gui/accessible/qaccessibleplugin.h (modified) (3 diffs)
-
src/gui/accessible/qaccessiblewidget.cpp (modified) (4 diffs)
-
src/gui/accessible/qaccessiblewidget.h (modified) (3 diffs)
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/accessible.pri
r2 r561 15 15 mac:!embedded { 16 16 HEADERS += accessible/qaccessible_mac_p.h 17 OBJECTIVE_SOURCES += accessible/qaccessible_mac.mm 17 OBJECTIVE_SOURCES += accessible/qaccessible_mac.mm \ 18 accessible/qaccessible_mac_cocoa.mm 18 19 } else:win32 { 19 20 SOURCES += accessible/qaccessible_win.cpp -
trunk/src/gui/accessible/qaccessible.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 62 62 63 63 \ingroup accessibility 64 \mainclass 64 65 65 66 66 Accessible applications can be used by people who are not able to … … 395 395 #endif 396 396 397 Q_GLOBAL_STATIC(QList<QAccessible::InterfaceFactory>, qAccessibleFactories) ;397 Q_GLOBAL_STATIC(QList<QAccessible::InterfaceFactory>, qAccessibleFactories) 398 398 399 399 QAccessible::UpdateHandler QAccessible::updateHandler = 0; … … 985 985 986 986 /*! 987 988 989 990 991 992 993 994 995 996 987 997 \class QAccessibleEvent 988 998 \brief The QAccessibleEvent class is used to query addition -
trunk/src/gui/accessible/qaccessible.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 211 211 Clock = 0x0000003D, 212 212 Splitter = 0x0000003E, 213 213 214 LayeredPane = 0x0000003F, 214 215 UserRole = 0x0000ffff … … 310 311 EditableTextInterface, 311 312 ValueInterface, 312 TableInterface 313 TableInterface, 314 ActionInterface, 315 ImageInterface 313 316 }; 314 317 } … … 319 322 class QAccessibleValueInterface; 320 323 class QAccessibleTableInterface; 324 325 321 326 322 327 class Q_GUI_EXPORT QAccessibleInterface : public QAccessible … … 375 380 inline QAccessibleTableInterface *tableInterface() 376 381 { return reinterpret_cast<QAccessibleTableInterface *>(cast_helper(QAccessible2::TableInterface)); } 382 383 384 385 386 387 377 388 378 389 private: -
trunk/src/gui/accessible/qaccessible2.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 105 105 \brief The QAccessibleValueInterface class implements support for 106 106 the IAccessibleValue interface. 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 107 131 108 132 \link http://www.linux-foundation.org/en/Accessibility/IAccessible2 IAccessible2 Specification \endlink -
trunk/src/gui/accessible/qaccessible2.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 82 82 inline QAccessible2Interface *qAccessibleEditableTextCastHelper() { return 0; } 83 83 inline QAccessible2Interface *qAccessibleTableCastHelper() { return 0; } 84 85 84 86 85 87 #define Q_ACCESSIBLE_OBJECT \ … … 96 98 case QAccessible2::TableInterface: \ 97 99 return qAccessibleTableCastHelper(); \ 100 101 102 103 98 104 } \ 99 105 return 0; \ … … 209 215 }; 210 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 211 240 #endif // QT_NO_ACCESSIBILITY 212 241 -
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 ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @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(); -
trunk/src/gui/accessible/qaccessible_mac_carbon.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/gui/accessible/qaccessible_mac_cocoa.mm
r2 r561 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 -
trunk/src/gui/accessible/qaccessible_mac_p.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/gui/accessible/qaccessible_unix.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/gui/accessible/qaccessible_win.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 51 51 #include <winuser.h> 52 52 #if !defined(WINABLEAPI) 53 # if defined(Q_ OS_WINCE)53 # if defined(Q_S_WINCE) 54 54 # include <bldver.h> 55 55 # endif … … 62 62 #endif 63 63 64 #ifdef Q_ OS_WINCE64 #ifdef Q_S_WINCE 65 65 #include "qguifunctions_wince.h" 66 66 #endif … … 178 178 } 179 179 180 Q ByteArraysoundName;180 Q soundName; 181 181 switch (reason) { 182 182 case PopupMenuStart: 183 soundName = "MenuPopup";183 soundName = ; 184 184 break; 185 185 186 186 case MenuCommand: 187 soundName = "MenuCommand";187 soundName = ; 188 188 break; 189 189 … … 195 195 switch (mb->icon()) { 196 196 case QMessageBox::Warning: 197 soundName = "SystemExclamation";197 soundName = ; 198 198 break; 199 199 case QMessageBox::Critical: 200 soundName = "SystemHand";200 soundName = ; 201 201 break; 202 202 case QMessageBox::Information: 203 soundName = "SystemAsterisk";203 soundName = ; 204 204 break; 205 205 default: … … 209 209 #endif // QT_NO_MESSAGEBOX 210 210 { 211 soundName = "SystemAsterisk";211 soundName = ; 212 212 } 213 213 … … 220 220 if (soundName.size()) { 221 221 #ifndef QT_NO_SETTINGS 222 QSettings settings(QLatin1String("HKEY_CURRENT_USER\\AppEvents\\Schemes\\Apps\\.Default\\") + 223 QString::fromLatin1(soundName.constData()),QSettings::NativeFormat);222 QSettings settings(QLatin1String("HKEY_CURRENT_USER\\AppEvents\\Schemes\\Apps\\.Default\\") + 223 QSettings::NativeFormat); 224 224 QString file = settings.value(QLatin1String(".Current/.")).toString(); 225 225 #else 226 QString file;226 QString file; 227 227 #endif 228 if (!file.isEmpty()) { 229 QT_WA({ 230 PlaySoundW(reinterpret_cast<const wchar_t *> (QString::fromLatin1(soundName).utf16()), 0, SND_ALIAS | SND_ASYNC | SND_NODEFAULT | SND_NOWAIT ); 231 } , { 232 PlaySoundA(soundName.constData(), 0, SND_ALIAS | SND_ASYNC | SND_NODEFAULT | SND_NOWAIT ); 233 }); 234 } 235 } 228 if (!file.isEmpty()) { 229 PlaySound(reinterpret_cast<const wchar_t *>(soundName.utf16()), 0, SND_ALIAS | SND_ASYNC | SND_NODEFAULT | SND_NOWAIT); 230 } 231 } 236 232 237 233 if (!isActive()) … … 240 236 typedef void (WINAPI *PtrNotifyWinEvent)(DWORD, HWND, LONG, LONG); 241 237 242 #if defined(Q_ OS_WINCE) // ### TODO: check for NotifyWinEvent in CE 6.0238 #if defined(Q_S_WINCE) // ### TODO: check for NotifyWinEvent in CE 6.0 243 239 // There is no user32.lib nor NotifyWinEvent for CE 244 240 return; … … 271 267 if (reason != QAccessible::ContextHelpStart && 272 268 reason != QAccessible::ContextHelpEnd) 273 w = qApp->focusWidget();269 w = focusWidget(); 274 270 if (!w) { 275 w = qApp->activeWindow();271 w = activeWindow(); 276 272 277 273 if (!w) … … 290 286 ptrNotifyWinEvent(reason, w->winId(), OBJID_CLIENT, who); 291 287 } 292 #endif // Q_ OS_WINCE288 #endif // Q_S_WINCE 293 289 } 294 290 … … 1056 1052 Role role = accessible->role(varID.lVal); 1057 1053 if (role != NoRole) { 1054 1055 1058 1056 (*pvarRole).vt = VT_I4; 1059 1057 (*pvarRole).lVal = role; -
trunk/src/gui/accessible/qaccessiblebridge.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/gui/accessible/qaccessiblebridge.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/gui/accessible/qaccessibleobject.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 213 213 { 214 214 QWidgetList list; 215 const QWidgetList tlw( qApp->topLevelWidgets());215 const QWidgetList tlw(topLevelWidgets()); 216 216 for (int i = 0; i < tlw.count(); ++i) { 217 217 QWidget *w = tlw.at(i); … … 309 309 break; 310 310 case FocusChild: 311 targetObject = qApp->activeWindow();311 targetObject = activeWindow(); 312 312 break; 313 313 default: … … 323 323 switch (t) { 324 324 case Name: 325 if ( qApp->activeWindow())326 return qApp->activeWindow()->windowTitle();325 if (activeWindow()) 326 return activeWindow()->windowTitle(); 327 327 break; 328 328 case Description: 329 return qApp->applicationFilePath();329 return applicationFilePath(); 330 330 default: 331 331 break; … … 343 343 QAccessible::State QAccessibleApplication::state(int) const 344 344 { 345 return qApp->activeWindow() ? Focused : Normal;345 return activeWindow() ? Focused : Normal; 346 346 } 347 347 … … 357 357 if (action == 0 || action == 1) { 358 358 QWidget *w = 0; 359 w = qApp->activeWindow();359 w = activeWindow(); 360 360 if (!w) 361 361 w = topLevelWidgets().at(0); -
trunk/src/gui/accessible/qaccessibleobject.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/gui/accessible/qaccessibleplugin.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/gui/accessible/qaccessibleplugin.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/gui/accessible/qaccessiblewidget.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 103 103 QString Q_GUI_EXPORT qt_accStripAmp(const QString &text) 104 104 { 105 if (text.isEmpty()) 106 return text; 107 108 const QChar *ch = text.unicode(); 109 int length = text.length(); 110 QString str; 111 while (length > 0) { 112 if (*ch == QLatin1Char('&')) { 113 ++ch; 114 --length; 115 if (!ch) 116 --ch; 117 } 118 str += *ch; 119 ++ch; 120 --length; 121 } 122 return str; 105 return QString(text).remove(QLatin1Char('&')); 123 106 } 124 107 -
trunk/src/gui/accessible/qaccessiblewidget.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 **
Note:
See TracChangeset
for help on using the changeset viewer.
