Skip to content

Commit

Permalink
macOS Accessibility: code hygiene
Browse files Browse the repository at this point in the history
Make getting a QAccessibleInterface from a QMacAccessibilityElement a
member function that also tests for the validity of the interface, and
replace the respective code duplication.

Remove unused member functions accessibilityMin/MaxValue.

Task-number: QTBUG-34337
Pick-to: 6.5
Change-Id: Ie15cf0b71285e63cc485d87ced050dc541967c98
Reviewed-by: Timur Pocheptsov <[email protected]>
Reviewed-by: Tor Arne Vestbø <[email protected]>
  • Loading branch information
vohi committed Apr 11, 2023
1 parent 1a55c8d commit 11ae55e
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 130 deletions.
1 change: 1 addition & 0 deletions src/plugins/platforms/cocoa/qcocoaaccessibilityelement.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ QT_DECLARE_NAMESPACED_OBJC_INTERFACE(QMacAccessibilityElement, NSObject <NSAcces
- (instancetype)initWithId:(QAccessible::Id)anId role:(NSAccessibilityRole)role;
+ (instancetype)elementWithId:(QAccessible::Id)anId;
- (void)updateTableModel;
- (QAccessibleInterface *)qtInterface;
)

#endif // QT_CONFIG(accessibility)
Expand Down
Loading

0 comments on commit 11ae55e

Please sign in to comment.